nvim-treesitter / playground

Treesitter playground integrated into Neovim
Apache License 2.0
898 stars 47 forks source link

How to use it to find highlight groups for cmp completion window (and documentation)? #84

Closed hrqmonteiro closed 1 year ago

hrqmonteiro commented 2 years ago

I have a problem in my colorscheme, as you can see, when i use cmp, the documentation has this highlight groups that are not consistent with the color of the completion window, and i need to find the highlight groups for it. It came to me the suggestion of this tree-sitter playground.

Screenshot from 2022-07-03 22-39-50

But i still wasn´t able to use it properly. If i use the TSHighlightCapturesUnderCursor, it gives me the highlight for the thing i am writing, and i am not able to get to the cmp window, like, i was writing and used it:

Screenshot from 2022-07-04 08-09-30

It gave me tsxTSVariable, which is not all all what i am trying to get...

How can i find the groups for the cmp window and documentation?

clason commented 2 years ago

Is nvim-cmp even using treesitter for its float? I think it's easier to check the nvim-cmp sources (or ask at the repo) for the highlight groups it uses.