indentLine icon indicating copy to clipboard operation
indentLine copied to clipboard

Option to not conceal markdown characters

Open eatthoselemons opened this issue 4 years ago • 3 comments

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

eatthoselemons avatar Feb 17 '21 18:02 eatthoselemons

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

bew avatar Mar 09 '21 09:03 bew

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

zprhhs avatar Mar 11 '21 10:03 zprhhs

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.

nbeliy avatar Feb 02 '22 16:02 nbeliy