mirror of
https://github.com/SpaceVim/SpaceVim.git
synced 2025-01-23 13:50:05 +08:00
Fix SPC t s/S key binding (#4225)
close https://github.com/SpaceVim/SpaceVim/issues/4224
This commit is contained in:
parent
5286e1724f
commit
dccedde086
@ -104,7 +104,7 @@ function! SpaceVim#layers#checkers#config() abort
|
||||
call SpaceVim#layers#core#statusline#register_mode(
|
||||
\ {
|
||||
\ 'key' : 'syntax-checking',
|
||||
\ 'func' : string(s:_function('s:toggle_syntax_checker')),
|
||||
\ 'func' : s:_function('s:toggle_syntax_checker'),
|
||||
\ }
|
||||
\ )
|
||||
call SpaceVim#mapping#space#def('nnoremap', ['e', 'e'], 'call call('
|
||||
@ -255,7 +255,6 @@ endfunction
|
||||
|
||||
function! s:toggle_syntax_checker() abort
|
||||
call SpaceVim#layers#core#statusline#toggle_section('syntax checking')
|
||||
call SpaceVim#layers#core#statusline#toggle_mode('syntax-checking')
|
||||
if g:spacevim_lint_engine ==# 'neomake'
|
||||
verbose NeomakeToggle
|
||||
elseif g:spacevim_lint_engine ==# 'ale'
|
||||
|
@ -772,7 +772,8 @@ function! SpaceVim#layers#core#statusline#config() abort
|
||||
let conf = s:JSON.json_decode(join(readfile(expand('~/.cache/SpaceVim/major_mode.json'), ''), ''))
|
||||
for key in keys(conf)
|
||||
if conf[key]
|
||||
call SpaceVim#layers#core#statusline#toggle_mode(key)
|
||||
" this function should be called silent.
|
||||
silent! call SpaceVim#layers#core#statusline#toggle_mode(key)
|
||||
endif
|
||||
endfor
|
||||
endif
|
||||
|
@ -141,7 +141,7 @@ function! SpaceVim#layers#ui#config() abort
|
||||
call SpaceVim#layers#core#statusline#register_mode(
|
||||
\ {
|
||||
\ 'key' : 'spell-checking',
|
||||
\ 'func' : string(s:_function('s:toggle_spell_check')),
|
||||
\ 'func' : s:_function('s:toggle_spell_check'),
|
||||
\ }
|
||||
\ )
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user