playground icon indicating copy to clipboard operation
playground copied to clipboard

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

Open hrqmonteiro opened this issue 2 years ago • 1 comments

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?

hrqmonteiro avatar Jul 04 '22 11:07 hrqmonteiro

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.

clason avatar Jul 04 '22 11:07 clason