Mechanic for customizing individual colors
felipesere opened this issue · comments
Felipe Seré commented
nord.nvim
!
Do you think its possible to add a mechanic to override colours for specific groups?
For example, I'd like to use a different (Nord) colour for structs in Rust.
I'd be happy to contribute
Rui Ferrão commented
@felipesere the only thing the plugin exports is basically a set
function to load everything, which makes it impossible to override or customize individual colors.
We can always override using vim commands, which is what I did to fix somethings which seem broken, namely the html
syntax highlighting:
nord.set()
vim.cmd [[colorscheme nord]]
-- Fix HTML highlight
vim.cmd [[highlight @tag gui=bold guifg=#81A1C1]]
vim.cmd [[highlight @tag.delimiter gui=bold guifg=#616E88]]
vim.cmd [[highlight @tag.attribute guifg=#B48EAD]]
-- Fix elixir syntax
vim.cmd [[highlight @function gui=italic guifg=#81A1C1]]