mirror of
https://github.com/SpaceVim/SpaceVim.git
synced 2025-02-09 09:00:06 +08:00
Lint on the fly
This commit is contained in:
parent
b92b579586
commit
a845ba7dd5
@ -1,6 +1,18 @@
|
|||||||
if get(g:, 'spacevim_lint_on_save', 0)
|
if get(g:, 'spacevim_lint_on_save', 0)
|
||||||
augroup Neomake_wsd
|
augroup Neomake_on_save
|
||||||
au!
|
au!
|
||||||
autocmd! BufWritePost * Neomake
|
autocmd! BufWritePost * Neomake
|
||||||
augroup END
|
augroup END
|
||||||
endif
|
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
|
||||||
|
Loading…
Reference in New Issue
Block a user