[nvim] allow compiling S[AC]SS stylesheets with F9

This commit is contained in:
Dmytro Meleshko 2021-05-22 15:21:04 +03:00
parent 630d6885a1
commit 796a8a9c4d
3 changed files with 11 additions and 1 deletions

View file

@ -2,9 +2,10 @@ source <sfile>: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 <buffer> <F5> <Cmd>Open %.html<CR>

View file

@ -0,0 +1 @@
source <sfile>:h/scss.vim

View file

@ -1 +1,9 @@
source <sfile>: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)