vim-pandoc / vim-pandoc-syntax

pandoc markdown syntax, to be installed alongside vim-pandoc
MIT License
424 stars 61 forks source link

codeblock conceal can not be disabled #301

Open jdhao opened 5 years ago

jdhao commented 5 years ago

The doc says that we can use g:pandoc#syntax#conceal#blacklist to disable conceal feature for certain Markdown elements. I add the following setting in my config:

let g:pandoc#syntax#conceal#blacklist = ['codeblock_start', 'codeblock_delim']

Unfortunately, the start and end of code blocks are still concealed.

cjns1989 commented 5 years ago

Not sure it's the same problem but I worked around what sounds like a similar problem with 'inline foototes' by:

set cole=0

jdhao commented 5 years ago

@cjns1989 set cole=0 will disable conceal for all the Markdown elements. I want to disable conceal for code blocks only.

baggiponte commented 2 years ago

works for me! (my dotfiles/nvim config are here).

amarakon commented 2 years ago

works for me! (my dotfiles/nvim config are here).

How did it work for you? It did not work for me either.

baggiponte commented 2 years ago

sooo I don't really know how much of a role my setup plays here, but:

  1. I am using lua for all settings
  2. I placed my markdown settings in after/plugin/quarto.lua (the naming is irrelevant, it could also be vim-pandoc.lua).

The one line in my settings is here and is simply using lua to run the vim command: vim.cmd("let g:pandoc#syntax#conceal#blacklist=['codeblock_start','codeblock_delim']").

Perhaps if you put the settings before the plugin is sourced then it won't be affected? idk

amarakon commented 2 years ago

Perhaps if you put the settings before the plugin is sourced then it won't be affected? idk

Yep, that was it, thanks.