mirror of
https://github.com/SpaceVim/SpaceVim.git
synced 2025-02-03 08:00:05 +08:00
Fix: Replace the function name 'conceal' with 'conceallevel' (#2889)
This commit is contained in:
parent
db8ff339c9
commit
9457fc8af0
@ -63,8 +63,8 @@ function! SpaceVim#layers#ui#config() abort
|
|||||||
\ . string(s:_function('s:toggle_background')) . ', [])',
|
\ . string(s:_function('s:toggle_background')) . ', [])',
|
||||||
\ 'toggle background', 1)
|
\ 'toggle background', 1)
|
||||||
call SpaceVim#mapping#space#def('nnoremap', ['t', 'c'], 'call call('
|
call SpaceVim#mapping#space#def('nnoremap', ['t', 'c'], 'call call('
|
||||||
\ . string(s:_function('s:toggle_conceal')) . ', [])',
|
\ . string(s:_function('s:toggle_conceallevel')) . ', [])',
|
||||||
\ 'toggle conceal', 1)
|
\ 'toggle conceallevel', 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)
|
||||||
call SpaceVim#mapping#space#def('nnoremap', ['t', 'f'], 'call call('
|
call SpaceVim#mapping#space#def('nnoremap', ['t', 'f'], 'call call('
|
||||||
@ -281,13 +281,13 @@ function! s:toggle_whitespace() abort
|
|||||||
call SpaceVim#layers#core#statusline#toggle_mode('whitespace')
|
call SpaceVim#layers#core#statusline#toggle_mode('whitespace')
|
||||||
endfunction
|
endfunction
|
||||||
|
|
||||||
func! s:toggle_conceal()
|
function! s:toggle_conceallevel()
|
||||||
if &conceallevel == 0
|
if &conceallevel == 0
|
||||||
setlocal conceallevel=2
|
setlocal conceallevel=2
|
||||||
else
|
else
|
||||||
setlocal conceallevel=0
|
setlocal conceallevel=0
|
||||||
endif
|
endif
|
||||||
endf
|
endfunction
|
||||||
|
|
||||||
function! s:toggle_background()
|
function! s:toggle_background()
|
||||||
let s:tbg = &background
|
let s:tbg = &background
|
||||||
|
Loading…
Reference in New Issue
Block a user