From 1280ca11e2a89c97de6c36c391266c104c4861af Mon Sep 17 00:00:00 2001 From: Minijackson Date: Sat, 13 Jan 2024 20:45:13 +0100 Subject: vim: pandoc formatter with --standalone --- dotfiles/vim/lua/vim-dev.lua | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'dotfiles/vim/lua/vim-dev.lua') diff --git a/dotfiles/vim/lua/vim-dev.lua b/dotfiles/vim/lua/vim-dev.lua index 74ddb6c..21123fa 100644 --- a/dotfiles/vim/lua/vim-dev.lua +++ b/dotfiles/vim/lua/vim-dev.lua @@ -117,7 +117,8 @@ null_ls.setup({ -- Vim Pandoc vim.g["pandoc#formatting#equalprg"] = "pandoc -t markdown --wrap=preserve" -vim.g["pandoc#formatting#extra_equalprg"] = "--reference-links --reference-location=section" +-- standalone needed to keep the YAML metadata block +vim.g["pandoc#formatting#extra_equalprg"] = "--standalone --reference-links --reference-location=section" -- Actions preview require("actions-preview").setup() -- cgit v1.2.3