mirror of
https://github.com/keanuplayz/dotfiles.git
synced 2024-08-15 02:33:12 +00:00
Compare commits
4 commits
955a4d07f4
...
ffd4e25823
Author | SHA1 | Date | |
---|---|---|---|
|
ffd4e25823 | ||
|
7ded7fc2f3 | ||
|
a281507269 | ||
|
432cb47135 |
4 changed files with 9 additions and 16 deletions
4
nvim/after/ftplugin/awk.vim
Normal file
4
nvim/after/ftplugin/awk.vim
Normal file
|
@ -0,0 +1,4 @@
|
|||
" <https://stackoverflow.com/a/7212314/12005228>
|
||||
let &l:makeprg = 'awk --lint --source "BEGIN{exit(0)}END{exit(0)}" --file %:S'
|
||||
" <https://github.com/WolfgangMehner/vim-plugins/blob/a673942f0b7fe9cbbb19282ee4c3ebe5decf2a1d/plugin/awk-support.vim#L570>
|
||||
let &l:errorformat = 'awk: %f:%l: %m'
|
|
@ -1,11 +1,5 @@
|
|||
source <sfile>:h/text.vim
|
||||
|
||||
let s:src_file = expand('%')
|
||||
let s:out_file = s:src_file.'.html'
|
||||
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)
|
||||
let &l:makeprg = 'markdown2htmldoc -- %:S %:S.html'
|
||||
|
||||
nnoremap <buffer> <F5> <Cmd>Open %.html<CR>
|
||||
|
|
|
@ -1,9 +1,3 @@
|
|||
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)
|
||||
let &l:makeprg = 'sass -- %:S:%:S.css'
|
||||
|
|
|
@ -43,7 +43,8 @@ endif
|
|||
function s:CloseBuffer(cmd) abort
|
||||
let cmd = a:cmd
|
||||
if &modified
|
||||
let answer = confirm("Save changes?", "&Yes\n&No\n&Cancel")
|
||||
" <https://github.com/neovim/neovim/blob/a282a177d3320db25fa8f854cbcdbe0bc6abde7f/src/nvim/ex_cmds2.c#L1400>
|
||||
let answer = confirm("Save changes to \"".expand('%')."\"?", "&Yes\n&No\n&Cancel")
|
||||
if answer ==# 1 " Yes
|
||||
write
|
||||
elseif answer ==# 2 " No
|
||||
|
@ -139,4 +140,4 @@ endif
|
|||
" }}}
|
||||
|
||||
|
||||
nnoremap <silent> <F9> <Cmd>make<CR>
|
||||
nnoremap <silent> <F9> <Cmd>make!<CR>
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue