Skip to content
This repository has been archived by the owner on Jul 29, 2023. It is now read-only.

Option to not conceal markdown characters #349

Open
eatthoselemons opened this issue Feb 17, 2021 · 3 comments
Open

Option to not conceal markdown characters #349

eatthoselemons opened this issue Feb 17, 2021 · 3 comments

Comments

@eatthoselemons
Copy link

eatthoselemons commented Feb 17, 2021

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
Copy link

bew commented Mar 9, 2021

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
Copy link

zprhhs commented Mar 11, 2021

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

@nbeliy
Copy link

nbeliy commented Feb 2, 2022

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.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants