Closed ofseed closed 11 months ago
Is Conceal
a styleless version of Comment
?
Maybe not, after testing some popular color schemes, I realize it may not very proper.
However, there may be a most suitable highlight, the LspCodeLens
, which is built in by nvim-lsp, I just committed the changes.
I am not sure but it seems like the highlight group LspCodeLens
is not a native highlight group so needs to be explicitly defined by theme and for example, it's not defined by the theme I am using. Maybe we can use pcall('nvim_get_hl_by_name', 'LspCodeLens', 1) == false
to check whether this highlight group exists so can decay it to use Comment
?
I am not sure but it seems like the highlight group
LspCodeLens
is not a native highlight group so needs to be explicitly defined by theme and for example, it's not defined by the theme I am using. Maybe we can usepcall('nvim_get_hl_by_name', 'LspCodeLens', 1) == false
to check whether this highlight group exists so can decay it to useComment
?
@olimorris Do you know this highlight group LspCodeLens
? 😊
I think conceal
instead of comment
is a sensible suggestion. My colorscheme, nightfox, catppuccin, tokyonight all have no styles applied to conceal
. The name of the highlight group is fine imo.
I recommend
Conceal
instead ofComment
as the default color, because in many color schemes, theComment
is set to italicbefore![image](https://user-images.githubusercontent.com/61115159/224527501-7daa6795-e23a-480c-9486-9bee761600f8.png)
after![image](https://user-images.githubusercontent.com/61115159/224527538-73da34e0-b42a-4943-b593-430ce7ede574.png)