Skip to content
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

treesitter highlighting variables #30

Open
TJohn0312 opened this issue Feb 3, 2023 · 1 comment
Open

treesitter highlighting variables #30

TJohn0312 opened this issue Feb 3, 2023 · 1 comment
Labels
enhancement New feature or request

Comments

@TJohn0312
Copy link

TJohn0312 commented Feb 3, 2023

When using / search it highlights selected words with blue2. but it changes to a darker color for white text and teal1, to make things easier to see.
however I have vim-illuminate highlighting other uses of the word under the cursor. It highlights in blue2, and doesn't change for lighter text.
any suggestions on how to implement this, or should i just change the color to a grey

@TJohn0312 TJohn0312 changed the title Changin a color treesitter highlighting variables Feb 3, 2023
@olivercederborg olivercederborg added the enhancement New feature or request label Feb 17, 2023
@kayuxx
Copy link
Contributor

kayuxx commented Sep 14, 2023

@TJohn0312 you can use the neovim api to set such an highlight using vim.api.nvim_set_hl.
ex:

local set_hl = vim.api.nvim_set_hl
set_hl(0, '@string', {fg = "red"})

or just use the vim :hi cmd

:hi @string guifg=red

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

3 participants