Highlight documentation window colours #1124
megalithic
started this conversation in
Ideas
Replies: 1 comment 2 replies
-
You can use the Colorizer plugin: -- Colorizer
{
'norcalli/nvim-colorizer.lua',
config = function()
require('colorizer').setup({
'*',
}, {
RGB = true, -- #RGB hex codes
RRGGBB = true, -- #RRGGBB hex codes
names = true, -- "Name" codes like Blue
RRGGBBAA = true, -- #RRGGBBAA hex codes
rgb_fn = true, -- CSS rgb() and rgba() functions
hsl_fn = true, -- CSS hsl() and hsla() functions
css = true, -- Enable all CSS features: rgb_fn, hsl_fn, names, RGB, RRGGBB
css_fn = true, -- Enable all CSS *functions*: rgb_fn, hsl_fn
-- Available modes: foreground, background
mode = 'background' -- Set the display mode.
})
end
}, |
Beta Was this translation helpful? Give feedback.
2 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Cross-posting from this plugin: brenoprata10/nvim-highlight-colors#15
I'd love to know how to go about applying colour highlighting for the documentation window. Is it possible to push the documentation window content through a function that can apply an additional callback to do the colour highlighting transformations?
OR, even easier, can we apply a
buftype
to the documentation window?Beta Was this translation helpful? Give feedback.
All reactions