Closed solotim closed 4 months ago
That's related to Tree-sitter (or LSP semantic highlights, but I don't think these are available in Neovim 0.8).
Can you move your cursor to the symbol(s) and compare the output of :TSHighlightCapturesUnderCursor
? (:Inspect
starting with Neovim 0.9)
It's the problem of highlighting engine. There are a lot of highlighting engines in nvim, to name a few:
It depends on the highlighting engine whether a token should be highlighted or not, not a color scheme.
@antoineco , my nvim don't have :TSHighlightCapturesUnderCursor
command
Thanks for the reply. I agree it doesn't look like a bug in the theme. I'll dig more.
Ah my bad, the command is provided by https://github.com/nvim-treesitter/playground
@solotim did you get a chance to try the command after installing the aforementioned plug-in?
This issue seems to have become inactive, but here is the answer to my above question, for posterity:
In the first print:
Treesitter
- @variable.cpp links to Fg cpp
In the second print:
Treesitter
- @_parent.cpp links to @_parent cpp
- @property.cpp links to Blue cpp
To me the result seems expected in the context of Tree-sitter. LSP semantic highlights would probably be able to determine the context more accurately.
redhat 7.x + xterm + tmux 3.2 + nvim 0.82 + clangd + treesitter + gruvbox material
I found the class member variable won't be highlighted if use certain naming style.
Example 1:
Example 2:
Is this expected? Or is it a bug?