Open habamax opened 1 month ago
make
Conceal
linked to or the same asNonText
?
or better SpecialKey
.
Hmm… are these win:
etc. added by plugins?
Hmm… are these
win:
etc. added by plugins?
Yes, indeed. Text properties added by LSPs and they "usually" link their highlight group to Conceal
.
Well, that's one use case. Isn't Conceal
used for other things where using NonText
or SpecialKey
might be a bad idea? I don't know, I've never used that feature and I'm not even sure what it is used for.
FWIW, Conceal
looks like that in default
:
which would look like shit in your use case. Somehow I think that the maintainers of those plugins chose Conceal
because it looked good in their specific colorscheme, without considering a) how it looks by default, b) how it would look in other colorschemes or b) the actual semantics of the group.
Moreover, making those text properties dim, like in your screenshot, begs the question: what's the point? If you add meta textual information to the view it must be because it is important and useful… so why make it dark grey or whatever?
Isn't Conceal used for other things where using NonText or SpecialKey might be a bad idea?
Yep is it used to highlight concealed text defined by syntax files, when conceallevel is 1 or 2.
Imagine a markdown that conceals all the markup turning markdown links to "just a link" as in [blabla](https://blabla.com)
-> blabla
(but underlined). Or hiding **
surrounding bold text: **bold**
-> bold
, etc.
Default Conceal is... as good as default vim colorscheme is.
Moreover, making those text properties dim, like in your screenshot, begs the question: what's the point? If you add meta textual information to the view it must be because it is important and useful… so why make it dark grey or whatever?
It is not about making it dim (my personal preference to Conceal), but different to regular text and syntax highlighting. In case of this metainfo, it shows names of the parameters defined in the function and if not highlighted differently to actual parameter values it looks weird :).
Anyways, it was just one usecase for the Conceal that is for some reason was chosen by lsp plugin authors to highlight this meta info. Apparently ppl can highlight it as they want.
The other is to distinguish concealed chars coming from syntax files when you have conceallevel=1
Imagine a markdown that conceals all the markup turning markdown links to "just a link" as in
[blabla](https://blabla.com)
->blabla
(but underlined). Or hiding**
surrounding bold text:**bold**
->bold
, etc.
And this is not happening :-). I couldn't find syntax file that does it for that kind of markup -- they just hide it. cchar
in syntax is used for tex and in pandoc to replace some of the text with chars.
And this is not happening
I definitely get **bold**
and *italic*
to be shown in bold and italics, respectively, with the asterisks concealed. That is supported by Vim's ftplugin. Maybe, you've set g:markdown_syntax_conceal
to 0
?
@lifepillar I meant it doesn't show cchar
instead there. Yes it conceals, but hides it completely. The difference could be seen in screencast earlier where markdown code block is rendered as _
.
Hi @romainl, do you think it makes sense to make
Conceal
linked to or the same asNonText
?It is used by several lsp plugins to show named params:
here you can see them in
close_buffer
function (win:
,action:
,abort_if_last:
):and the same in
zaibatsu
: