nordic.nvim icon indicating copy to clipboard operation
nordic.nvim copied to clipboard

Feature Request: support for aerial.nvim plugin

Open ovk opened this issue 3 years ago • 7 comments
trafficstars

Please consider adding support for Neovim plugin aerial.nvim. Its highlight groups are documented here.

ovk avatar Jul 16 '22 21:07 ovk

Looks like the default styles for this plugin are linked to the default nvim ones, so it should be supported here out of the box :thinking:

Edit I might have misunderstood. Maybe that's purely an example that was linked there ?

Does something look incorrect ?

andersevenrud avatar Jul 16 '22 21:07 andersevenrud

Maybe you could try https://github.com/andersevenrud/nordic.nvim/pull/80 ?

I've added basic support for colors based on their highlight definitions, but might not be what you're looking for.

So some feedback would be appreciated.

andersevenrud avatar Jul 16 '22 22:07 andersevenrud

Sorry, I should've provided more information. It seems that by default aerial doesn't really have highlighting (at least when viewed with Nordic color scheme). So I thought it would be nice to apply some colors from the Nordic palette to at least some elements of Aerial interface.

I tried #80 and it indeed adds some colors. Please see before/after picture below (left - before, right - after):

hl

While this is much better (especially the AerialLine style for selected row), maybe it's also worth having different color applied to icons (groups like Aerial*Icon)?

ovk avatar Jul 17 '22 01:07 ovk

While this is much better (especially the AerialLine style for selected row), maybe it's also worth having different color applied to icons (groups like Aerial*Icon)?

So that the text and icon does not match colors ?

What would you suggest then ? Because I've tuned the text to match the icons :)

andersevenrud avatar Jul 17 '22 13:07 andersevenrud

So that the text and icon does not match colors ?

Yes, that's what I meant. I think having icons to be different color from text will provide some nice visual accent. It may also be beneficial if the icons themselves have different color to provide some visual context (e.g. AerialClassIcon is different from AerialFunctionIcon), but I understand that it would require more work and is also easy to overdo.

Here's an example of Aerial itself from the video in their readme: aerial

And this is from symbols-outline.nvim, which is a similar plugin: 20220717_09h59m53s_grim

nvim-tree also has different color for icons and text (this is it with Nordic theme): 20220717_10h01m48s_grim

Unfortunately, due to protanomaly I cannot suggest you specific colors to use. If I could, I would've just made a PR :)

ovk avatar Jul 17 '22 14:07 ovk

It looks to me like all of these examples use the same style. White text + Colored Icon.

I'm a bit worried that having different colors will make things visually confusing and sort of "candy like". I'm leaning towards just doing either:

  1. Colored Icon + White text (out of the box behavior)
  2. Colored icon + Same colored text (behavior in PR)

and adjust just simply change the choice of colors to a custom one instead of using the linked highlight references in Aerial.

andersevenrud avatar Jul 17 '22 14:07 andersevenrud

I agree, having way too many colors could make it more stimulating and distracting.

I personally prefer the first approach (colored icon + white text). I think it will better match how other plugins (like nvim-tree or Telescope) look with Nordic theme. But of course the choice is up to you.

ovk avatar Jul 17 '22 14:07 ovk

I could not get back to this the day I mentioned in the PR, but it's in now with some minor adjustments :sweat_smile:

I went for the first option as discussed, but I dunno if I made the right choices of colors.

Feel free to re-open the issue if you have some opinions on this!

andersevenrud avatar Oct 05 '22 20:10 andersevenrud

Looks good to me, and consistent with the theme. Thank you!

ovk avatar Oct 06 '22 00:10 ovk