mirror of
https://github.com/SpaceVim/SpaceVim.git
synced 2025-03-15 19:45:46 +08:00
Remove toggle conceal func
This commit is contained in:
parent
1fdcaa3520
commit
2e6064cf14
@ -55,7 +55,8 @@ function! SpaceVim#layers#ui#config() abort
|
|||||||
\ 'highlight-long-lines', 1)
|
\ 'highlight-long-lines', 1)
|
||||||
call SpaceVim#mapping#space#def('nnoremap', ['t', 'b'], 'call ToggleBG()',
|
call SpaceVim#mapping#space#def('nnoremap', ['t', 'b'], 'call ToggleBG()',
|
||||||
\ 'toggle background', 1)
|
\ 'toggle background', 1)
|
||||||
call SpaceVim#mapping#space#def('nnoremap', ['t', 'c'], 'call ToggleConceal()',
|
call SpaceVim#mapping#space#def('nnoremap', ['t', 'c'], 'call call('
|
||||||
|
\ . string(s:_function('s:toggle_conceal')) . ', [])',
|
||||||
\ 'toggle conceal', 1)
|
\ 'toggle conceal', 1)
|
||||||
call SpaceVim#mapping#space#def('nnoremap', ['t', 't'], 'call SpaceVim#plugins#tabmanager#open()',
|
call SpaceVim#mapping#space#def('nnoremap', ['t', 't'], 'call SpaceVim#plugins#tabmanager#open()',
|
||||||
\ 'Open tabs manager', 1)
|
\ 'Open tabs manager', 1)
|
||||||
@ -272,3 +273,11 @@ function! s:toggle_whitespace() abort
|
|||||||
call SpaceVim#layers#core#statusline#toggle_section('whitespace')
|
call SpaceVim#layers#core#statusline#toggle_section('whitespace')
|
||||||
call SpaceVim#layers#core#statusline#toggle_mode('whitespace')
|
call SpaceVim#layers#core#statusline#toggle_mode('whitespace')
|
||||||
endfunction
|
endfunction
|
||||||
|
|
||||||
|
func! s:toggle_conceal()
|
||||||
|
if &conceallevel == 0
|
||||||
|
setlocal conceallevel=2
|
||||||
|
else
|
||||||
|
setlocal conceallevel=0
|
||||||
|
endif
|
||||||
|
endf
|
||||||
|
@ -20,13 +20,6 @@ function! ToggleBG()
|
|||||||
set background=dark
|
set background=dark
|
||||||
endif
|
endif
|
||||||
endfunction
|
endfunction
|
||||||
function! ToggleConceal()
|
|
||||||
if &conceallevel == 0
|
|
||||||
setlocal conceallevel=2
|
|
||||||
else
|
|
||||||
setlocal conceallevel=0
|
|
||||||
endif
|
|
||||||
endfunction
|
|
||||||
function! BracketsFunc()
|
function! BracketsFunc()
|
||||||
let line = getline('.')
|
let line = getline('.')
|
||||||
let col = col('.')
|
let col = col('.')
|
||||||
|
Loading…
x
Reference in New Issue
Block a user