diff --git a/nvim/after/ftplugin/markdown.vim b/nvim/after/ftplugin/markdown.vim index 5408829..f5408c0 100644 --- a/nvim/after/ftplugin/markdown.vim +++ b/nvim/after/ftplugin/markdown.vim @@ -2,9 +2,10 @@ source :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) +let &l:makeprg = 'markdown2htmldoc' for s:arg in get(g:, 'dotfiles_markdown2htmldoc_options', []) let &l:makeprg .= ' '.shellescape(s:arg) endfor +let &l:makeprg .= ' -- '.shellescape(s:src_file).' '.shellescape(s:out_file) nnoremap Open %.html diff --git a/nvim/after/ftplugin/sass.vim b/nvim/after/ftplugin/sass.vim new file mode 100644 index 0000000..6e88f83 --- /dev/null +++ b/nvim/after/ftplugin/sass.vim @@ -0,0 +1 @@ +source :h/scss.vim diff --git a/nvim/after/ftplugin/scss.vim b/nvim/after/ftplugin/scss.vim index 94b3fea..9d5f7f1 100644 --- a/nvim/after/ftplugin/scss.vim +++ b/nvim/after/ftplugin/scss.vim @@ -1 +1,9 @@ source :h/css.vim + +let s:src_file = expand('%') +let s:out_file = s:src_file.'.css' +let &l:makeprg = 'sass' +for s:arg in get(g:, 'dotfiles_dart_sass_options', []) + let &l:makeprg .= ' '.shellescape(s:arg) +endfor +let &l:makeprg .= ' -- '.shellescape(s:src_file).':'.shellescape(s:out_file)