mirror of
https://github.com/SpaceVim/SpaceVim.git
synced 2025-02-03 00:00:04 +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)
|
||||
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
|
||||
|
Loading…
Reference in New Issue
Block a user