You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Is there a way to change the inlay hint color? #111
If you are using neovim and treesitter you could use treesitter-playgroud to see what highlight grop the thing you want to change, and then use hi! <highlight> guifg=<color> guibg=<color> to change the highlight.
Hi there, I think you will need to follow the advice above and try to figure out which highlight group that hint texts are. Once you know, you can try editing the colors for that specific highlight group. Unfortunately, it might happen that they share the same group with another syntax, in which case it'll be hard to differentiate them in vim.
Activity
saccarosium commentedon Dec 22, 2022
Can you give some more information, such as:
If you are using neovim and treesitter you could use treesitter-playgroud to see what highlight grop the thing you want to change, and then use
hi! <highlight> guifg=<color> guibg=<color>to change the highlight.tubzby commentedon Dec 24, 2022
I'm using Neovim 0.8.1 without treesitter.
tomasiser commentedon Jan 2, 2023
Hi there, I think you will need to follow the advice above and try to figure out which highlight group that hint texts are. Once you know, you can try editing the colors for that specific highlight group. Unfortunately, it might happen that they share the same group with another syntax, in which case it'll be hard to differentiate them in vim.
pattop commentedon Jan 6, 2023
@tubzby assuming you're using rust-tools you can set the highlight group for the inlay e.g.
Then you can set the colour as normal, e.g.: