1
0
mirror of https://github.com/SpaceVim/SpaceVim.git synced 2025-01-23 17:30:04 +08:00

fix(denite): fix SPC i s in denite layer

This commit is contained in:
wsdjeg 2022-02-03 19:37:55 +08:00
parent 95e2352940
commit d932b16def

View File

@ -37,6 +37,13 @@ function! SpaceVim#layers#denite#config() abort
let g:_spacevim_mappings_space.i = {'name' : '+Insertion'}
call SpaceVim#mapping#space#def('nnoremap', ['i', 'u'], 'Denite unicode', 'search-and-insert-unicode', 1)
if g:spacevim_snippet_engine ==# 'neosnippet'
call SpaceVim#mapping#space#def('nnoremap', ['i', 's'], 'Denite neosnippet', 'insert snippets', 1)
elseif g:spacevim_snippet_engine ==# 'ultisnips'
" @todo ultisnips do not support denite now.
" https://github.com/SirVer/ultisnips/issues/869
" call SpaceVim#mapping#space#def('nnoremap', ['i', 's'], 'Denite ultisnips', 'insert snippets', 1)
endif
let lnum = expand('<slnum>') + s:lnum - 1