Open eatthoselemons opened 3 years ago
I'm guessing you're using plasticboy's vim-markdown plugin, you can configure it to not conceal things like backquotes and other things, see: https://github.com/plasticboy/vim-markdown#syntax-concealing
Following this, you can set:
let g:vim_markdown_conceal = 0
let g:vim_markdown_conceal_code_blocks = 0
I set conceal setting for markdown.
au FileType markdown let g:indentLine_setConceal= 0
The same issue is in neovim for bunch of syntax (in $VIMRUNTIME/syntax), including markdown and json. The syntax are shipped with neovim, and switching off concealing for each of them is tedious.
In the json syntax file use concealends
:
if has('conceal') && (!exists("g:vim_json_conceal") || g:vim_json_conceal==1)
syn region jsonKeyword matchgroup=jsonQuote start=/"/ end=/"\ze[[:blank:]\r\n]*\:/ concealends contained
else
syn region jsonKeyword matchgroup=jsonQuote start=/"/ end=/"\ze[[:blank:]\r\n]*\:/ contained
endif
Is it possible to use same trick in indentLine plugin? I have no experience in vim coding, so I can't test it.
Using indentLine is very nice, however some markdown characters like
`
are concealed, is there a way to not have those characters concealed? I know the documentation says thatindentLine-conceallevel
needs to be1
or2
but it is not explained why that is and if there is a way to get around that.For example I tried the
syntax
method and that doesn't seem to work:syntax match codeCharacter "`" conceal cchar=`
I also tried setting theconceal cchar
toc
just incase`
was concealed twice