You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Hi,
I am using vim-pandoc along with vimwiki, and it is mostly working as expected so far.
I have the "conceal url" option set to 0 globally to avoid the erratic wrapping it causes, but I wanted to enable it for the vimwiki index pages since they consist mostly of list items made of links, it would improve the visual.
Unfortunately, I could not find a way in the documentation to set vim-pandoc-syntax options locally whereas vim-pandoc mentions the possibility to use the let b:pandoc... local variables to do so.
I am aware of the s:WithConceal() function, but for what I understood, it is designed to set up new specific concealment rules.
Since my index pages are all named index.wiki, I tried the following, but received an illegal variable error message:
Making an autocmd command that checks the path of the current file and set the variable accordingly should work, as long as it's executed before the pandoc syntax file is loaded.
Because in vim :syn commands are already buffer-local.
Making an autocmd command that checks the path of the current file and set the variable accordingly should work, as long as it's executed before the pandoc syntax file is loaded.
Thanks user202729, setting the global g:pandoc#syntax#conceal#urls with an autocmd does work, but then, all other pandoc files are affected too, I am trying to target index files only.
I don't think there is a local version of the conceal#urls setting, that would have to be implemented (need to think about how that would work).
Hi,
I am using
vim-pandoc
along with vimwiki, and it is mostly working as expected so far.I have the "conceal url" option set to 0 globally to avoid the erratic wrapping it causes, but I wanted to enable it for the vimwiki index pages since they consist mostly of list items made of links, it would improve the visual.
Unfortunately, I could not find a way in the documentation to set
vim-pandoc-syntax
options locally whereasvim-pandoc
mentions the possibility to use thelet b:pandoc...
local variables to do so.I am aware of the
s:WithConceal()
function, but for what I understood, it is designed to set up new specific concealment rules.Since my index pages are all named
index.wiki
, I tried the following, but received anillegal variable
error message:The text was updated successfully, but these errors were encountered: