From afb70a6ad3bfc5b09634ceb2855e861242d9ebc4 Mon Sep 17 00:00:00 2001 From: Dmytro Meleshko Date: Sun, 6 Sep 2020 13:26:11 +0300 Subject: [PATCH] [nvim] add option for specifying extra arguments for markdown2htmldoc --- nvim/after/ftplugin/markdown.vim | 3 +++ 1 file changed, 3 insertions(+) diff --git a/nvim/after/ftplugin/markdown.vim b/nvim/after/ftplugin/markdown.vim index b36eac8..82aa090 100644 --- a/nvim/after/ftplugin/markdown.vim +++ b/nvim/after/ftplugin/markdown.vim @@ -3,3 +3,6 @@ execute 'source' fnameescape(expand(':p:h').'/text.vim') let s:src_file = expand('%') let s:out_file = s:src_file.'.html' let &l:makeprg = 'markdown2htmldoc '.shellescape(s:src_file).' '.shellescape(s:out_file) +for s:arg in get(g:, 'dotfiles_markdown2htmldoc_options', []) + let &l:makeprg .= ' '.shellescape(s:arg) +endfor