1
0
mirror of https://github.com/SpaceVim/SpaceVim.git synced 2025-03-13 02:05:40 +08:00

Remove toggle conceal func

This commit is contained in:
Shidong Wang 2019-03-14 22:39:54 +08:00
parent 1fdcaa3520
commit 2e6064cf14
2 changed files with 10 additions and 8 deletions

View File

@ -55,7 +55,8 @@ function! SpaceVim#layers#ui#config() abort
\ 'highlight-long-lines', 1)
call SpaceVim#mapping#space#def('nnoremap', ['t', 'b'], 'call ToggleBG()',
\ '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)
call SpaceVim#mapping#space#def('nnoremap', ['t', 't'], 'call SpaceVim#plugins#tabmanager#open()',
\ '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_mode('whitespace')
endfunction
func! s:toggle_conceal()
if &conceallevel == 0
setlocal conceallevel=2
else
setlocal conceallevel=0
endif
endf

View File

@ -20,13 +20,6 @@ function! ToggleBG()
set background=dark
endif
endfunction
function! ToggleConceal()
if &conceallevel == 0
setlocal conceallevel=2
else
setlocal conceallevel=0
endif
endfunction
function! BracketsFunc()
let line = getline('.')
let col = col('.')