mirror of
https://github.com/SpaceVim/SpaceVim.git
synced 2025-01-23 17:50:04 +08:00
24 lines
528 B
VimL
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
|