mirror of
https://github.com/SpaceVim/SpaceVim.git
synced 2025-02-03 00:50:05 +08:00
Merge pull request #1000 from sei40kr/feature/ale-statusline
Added autocmd to update status-line
This commit is contained in:
commit
b1d6c150e0
@ -35,8 +35,14 @@ function! SpaceVim#layers#checkers#config() abort
|
|||||||
call SpaceVim#mapping#space#def('nnoremap', ['e', '.'], 'call call('
|
call SpaceVim#mapping#space#def('nnoremap', ['e', '.'], 'call call('
|
||||||
\ . string(s:_function('s:error_transient_state')) . ', [])',
|
\ . string(s:_function('s:error_transient_state')) . ', [])',
|
||||||
\ 'error-transient-state', 1)
|
\ 'error-transient-state', 1)
|
||||||
endfunction
|
|
||||||
|
|
||||||
|
augroup SpaceVim_layer_checker
|
||||||
|
autocmd!
|
||||||
|
if g:spacevim_enable_ale
|
||||||
|
autocmd User ALELint let &l:statusline = SpaceVim#layers#core#statusline#get(1)
|
||||||
|
endif
|
||||||
|
augroup END
|
||||||
|
endfunction
|
||||||
|
|
||||||
function! s:verify_syntax_setup() abort
|
function! s:verify_syntax_setup() abort
|
||||||
if g:spacevim_enable_neomake
|
if g:spacevim_enable_neomake
|
||||||
|
Loading…
Reference in New Issue
Block a user