|
I find that the highlighting for doc-strings dominates what I can see and I want to grey these out. Other strings, part of the code, I would leave unaltered. Is this possible? How would it be done? |
Answered by
axvr
Feb 24, 2023
Replies: 1 comment 1 reply
|
We've actually had this question before: #28 (comment) TL;DR: it's really difficult to do with the regular expressions Vim provides us. In theory you could create additional tools which do that analyse the code and hook it up to Vim's "text properties" (see: What might work as a partial-solution is to override the colour of all strings to something not as bright. E.g. " Highlight like another syntax class (like "character" in this example).
highlight link clojureString Character
highlight link clojureStringDelimiter Character
" Highlight with custom colour (red in this example).
highlight clojureString guifg=#ff0000 ctermfg=1
highlight clojureStringDelimiter guifg=#ff0000 ctermfg=1 |
1 reply
Answer selected by
davesann
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
We've actually had this question before: #28 (comment)
TL;DR: it's really difficult to do with the regular expressions Vim provides us. In theory you could create additional tools which do that analyse the code and hook it up to Vim's "text properties" (see:
:help textprop.txt). Unfortunately such functionality is outside the scope of this project.What might work as a partial-solution is to override the colour of all strings to something not as bright. E.g.