1
0
mirror of https://github.com/SpaceVim/SpaceVim.git synced 2025-02-02 23:50:04 +08:00

Lint on the fly

This commit is contained in:
wsdjeg 2017-04-08 23:41:56 +08:00
parent b92b579586
commit a845ba7dd5

View File

@ -1,6 +1,18 @@
if get(g:, 'spacevim_lint_on_save', 0)
augroup Neomake_wsd
augroup Neomake_on_save
au!
autocmd! BufWritePost * Neomake
augroup END
endif
if empty(maparg('<leader>ck', '',0,1))
nnoremap <silent> <Leader>ck :Neomake<CR>
endif
if get(g:, 'spacevim_lint_on_the_fly', 0) || 1
let g:neomake_tempfile_enabled = 1
let g:neomake_open_list = 0
augroup Neomake_on_the_fly
au!
autocmd! TextChangedI * Neomake
augroup END
endif