mirror of
https://github.com/SpaceVim/SpaceVim.git
synced 2025-04-15 08:09:11 +08:00
Fix line number toggle
This commit is contained in:
parent
acca723ea9
commit
4101110193
@ -27,6 +27,8 @@ function! SpaceVim#layers#ui#config() abort
|
||||
call SpaceVim#mapping#space#def('nnoremap', ['t', '8'], 'call call('
|
||||
\ . string(s:_function('s:toggle_fill_column')) . ', [])',
|
||||
\ 'toggle-colorcolume', 1)
|
||||
call SpaceVim#mapping#space#def('nnoremap', ['t', 'b'], 'call ToggleBG()',
|
||||
\ 'toggle background', 1)
|
||||
call SpaceVim#mapping#space#def('nnoremap', ['t', 'f'], 'call call('
|
||||
\ . string(s:_function('s:toggle_colorcolumn')) . ', [])',
|
||||
\ 'toggle-colorcolume', 1)
|
||||
|
@ -47,8 +47,8 @@ function! SpaceVim#mapping#space#init() abort
|
||||
call SpaceVim#mapping#menu('Open previous buffer', '[SPC]bN', 'bp')
|
||||
let g:_spacevim_mappings_space.e = {'name' : '+Errors'}
|
||||
let g:_spacevim_mappings_space.B = {'name' : '+Global-uffers'}
|
||||
nnoremap <silent> [SPC]tn :<C-u>set nu!<CR>
|
||||
let g:_spacevim_mappings_space.t.n = ['set nu!', 'toggle line number']
|
||||
nnoremap <silent> [SPC]tn :<C-u>setlocal nonumber! norelativenumber!<CR>
|
||||
let g:_spacevim_mappings_space.t.n = ['setlocal nonumber! norelativenumber!', 'toggle line number']
|
||||
call SpaceVim#mapping#menu('toggle line number', '[SPC]tn', 'set nu!')
|
||||
endfunction
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user