Closed Hitesh-Aggarwal closed 8 months ago
Hey, sorry for the late reply!
This is an odd behavior, how is it supposed to look like? I really want to dig on it as semantic highlighting is important.
Also if you are trying to modify sweetie's highlighting groups it's encouraged to use vim.api.nvin_set_hl
Lua API instead of :hi
command.
Cheers
It looks like this... I am using catppuccin colorscheme in above screenshot. The variables passed as argument appear in different color than those declared locally.
You can fix this by linking @lsp.type.parameter
to tree-sitter @parameter
The problem is:
@lsp.type.parameter
linked to @identifier
@identifier
is not setSo the @lsp.type.parameter
has the same color as @lsp.type.variable
, which is a link to @none
, which is an empty group definition.
Hey, thank you so much for this input!
Could you please open a PR to address this behavior? I would be glad to merge it as soon as possible :D
I have clangd setup as the lsp server. I am on Neovim 0.9 and semantic highlights are not working. I have tried with tokyonight and catppuccin themes, on those the semantic highlights work as expected. I have also tried to hack on the colorscheme myself but I was unable to find the problem.