Skip to content

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

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
OmegaLambda1998 opened this issue Nov 22, 2024 · 1 comment
Assignees
Labels
bug Something isn't working

Comments

@OmegaLambda1998
Copy link

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 OmegaLambda1998 added the bug Something isn't working label Nov 22, 2024
@HiPhish
Copy link
Owner

HiPhish commented Dec 8, 2024

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

2 participants