This Neovim plugin provides an
nvim-cmp completion source
for X11 / web color names like SlateBlue
and SeaGreen
.
Using Packer:
use({
'https://https://github.com/nat-418/cmp-color-names.nvim',
config = {
require('cmp-color-names').setup()
}
})
Add this source to your nvim-cmp
configuration:
cmp.setup({
sources = cmp.config.sources({
{ name = 'luasnip' },
}, {
{ name = 'path' },
{ name = 'calc' },
{ name = 'git' },
{ name = 'buffer' },
{ name = 'omni' },
{ name = 'color_names'},
})
})
Enjoy autocompleting obscure named colors!