rainbow-delimiters.nvim
rainbow-delimiters.nvim copied to clipboard
[Feature]: rainbow-blocks add underline to allow for both semantic / treesitter tokens and delimiter colouring
Neovim version
No response
Language affected
No response
Query
No response
Strategy
No response
Description
Would it be possible to configure rainbow-blocks such that they provide scope-level rainbow underlines, whilst still allowing for semantic / treesitter token highlighting?
Yes, it should be possible by defining custom highlight groups which only set the underline colour:
vim.api.nvim_set_hl(0, 'RainbowDelimiterRed', {underline = true, sp = 'red'})
vim.api.nvim_set_hl(0, 'RainbowDelimiterYellow', {underline = true, sp = 'yellow'})
vim.api.nvim_set_hl(0, 'RainbowDelimiterBlue', {underline = true, sp = 'blue'})
vim.api.nvim_set_hl(0, 'RainbowDelimiterGreen', {underline = true, sp = 'green'})
-- and so on...