vim-pandoc-syntax
vim-pandoc-syntax copied to clipboard
codeblock conceal can not be disabled
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.
Not sure it's the same problem but I worked around what sounds like a similar problem with 'inline foototes' by:
set cole=0
@cjns1989 set cole=0
will disable conceal for all the Markdown elements. I want to disable conceal for code blocks only.
works for me! (my dotfiles/nvim config are here).
works for me! (my dotfiles/nvim config are here).
How did it work for you? It did not work for me either.
sooo I don't really know how much of a role my setup plays here, but:
- I am using
lua
for all settings - I placed my markdown settings in
after/plugin/quarto.lua
(the naming is irrelevant, it could also bevim-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
Perhaps if you put the settings before the plugin is sourced then it won't be affected? idk
Yep, that was it, thanks.