1
0
mirror of https://github.com/SpaceVim/SpaceVim.git synced 2025-01-23 17:50:04 +08:00
SpaceVim/config/plugins_before/neomake.vim
2017-05-15 23:22:54 +08:00

24 lines
528 B
VimL

if get(g:, 'spacevim_lint_on_save', 0)
augroup Neomake_on_save
au!
autocmd! BufWritePost * call s:neomake()
augroup END
endif
let g:_spacevim_toggle_syntax_flag = 1
function! s:neomake() abort
if g:_spacevim_toggle_syntax_flag == 1
Neomake
endif
endfunction
if get(g:, 'spacevim_lint_on_the_fly', 0)
let g:neomake_tempfile_enabled = 1
let g:neomake_open_list = 0
augroup Neomake_on_the_fly
au!
autocmd! TextChangedI * call s:neomake()
augroup END
endif