NTBBloodbath / sweetie.nvim

A clean, delightful and highly customizable Neovim colorscheme written in Lua
GNU General Public License v3.0
102 stars 5 forks source link

Semantic highlights are not working. #5

Closed Hitesh-Aggarwal closed 8 months ago

Hitesh-Aggarwal commented 1 year ago

image

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.

NTBBloodbath commented 1 year 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

Hitesh-Aggarwal commented 1 year ago

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

fitrh commented 1 year ago

You can fix this by linking @lsp.type.parameter to tree-sitter @parameter

The problem is:

So the @lsp.type.parameter has the same color as @lsp.type.variable, which is a link to @none, which is an empty group definition.

NTBBloodbath commented 1 year ago

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