diff options
author | Minijackson <minijackson@riseup.net> | 2024-01-13 20:45:13 +0100 |
---|---|---|
committer | Minijackson <minijackson@riseup.net> | 2024-01-13 20:45:13 +0100 |
commit | 1280ca11e2a89c97de6c36c391266c104c4861af (patch) | |
tree | a19451ae4bdc41bbc5a153354d642e4461f64a32 | |
parent | 074922eb4dfb93861bedfa8373e4aa43fde3aa76 (diff) | |
download | nixos-config-reborn-1280ca11e2a89c97de6c36c391266c104c4861af.tar.gz nixos-config-reborn-1280ca11e2a89c97de6c36c391266c104c4861af.zip |
vim: pandoc formatter with --standalone
-rw-r--r-- | dotfiles/vim/lua/vim-dev.lua | 3 |
1 files changed, 2 insertions, 1 deletions
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({ | |||
117 | 117 | ||
118 | -- Vim Pandoc | 118 | -- Vim Pandoc |
119 | vim.g["pandoc#formatting#equalprg"] = "pandoc -t markdown --wrap=preserve" | 119 | vim.g["pandoc#formatting#equalprg"] = "pandoc -t markdown --wrap=preserve" |
120 | vim.g["pandoc#formatting#extra_equalprg"] = "--reference-links --reference-location=section" | 120 | -- standalone needed to keep the YAML metadata block |
121 | vim.g["pandoc#formatting#extra_equalprg"] = "--standalone --reference-links --reference-location=section" | ||
121 | 122 | ||
122 | -- Actions preview | 123 | -- Actions preview |
123 | require("actions-preview").setup() | 124 | require("actions-preview").setup() |