New answers tagged

1 vote
Accepted

I've switched to nvim and init.lua, which pulls in onedark colorscheme. How can I add a custom rule?

If the syntax file already matches the /**/ comment in the string, you only need to add a highlight for it. Check the syntax group (e.g., using zS from scriptease or synstax#UnderCursor() from ...
D. Ben Knoble's user avatar
  • 24.8k
1 vote

MacOS - Vim overriding my highlight config in ~/.vimrc

The proper way to define your own colorscheme would be to actually define your colorscheme, for real, in its own file: " in ~/.vim/colors/mycolors.vim set background=dark hi clear let g:...
romainl's user avatar
  • 38.4k

Top 50 recent answers are included