rainbow-delimiters.nvim icon indicating copy to clipboard operation
rainbow-delimiters.nvim copied to clipboard

[Feature]: rainbow-blocks add underline to allow for both semantic / treesitter tokens and delimiter colouring

Open OmegaLambda1998 opened this issue 1 year ago • 1 comments

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?

OmegaLambda1998 avatar Nov 22 '24 03:11 OmegaLambda1998

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...

HiPhish avatar Dec 08 '24 22:12 HiPhish