lewis6991 / hover.nvim

Hover plugin framework for Neovim
MIT License
495 stars 33 forks source link

Add custom highlight groups #75

Open loganswartz opened 2 weeks ago

loganswartz commented 2 weeks ago

This adds custom highlight groups for the hover window, and aliases them to the highlights used previously. With this patch, a user can create custom styles for the hover window that don't affect any other hover windows. With no customizations, it should look identical to before, with one exception: I switched the background of the source bar (HoverSourceLine) to use TabLine instead of Normal.

For the highlight names, I just picked what that felt right, but they could probably be improved. Additionally, HoverSourceLine could reasonably be FloatTitle, TabLine, or WinBar, but I picked TabLine since sources already use TabLineSel and TabLineFill.