Yggdroot / indentLine

A vim plugin to display the indention levels with thin vertical lines
MIT License
4.14k stars 230 forks source link

Option to not conceal markdown characters #349

Open eatthoselemons opened 3 years ago

eatthoselemons commented 3 years ago

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 that indentLine-conceallevel needs to be 1 or 2 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 the conceal cchar to c just incase ` was concealed twice

bew commented 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
zprhhs commented 3 years ago

I set conceal setting for markdown. au FileType markdown let g:indentLine_setConceal= 0

nbeliy commented 2 years ago

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.