mirror of
https://github.com/SpaceVim/SpaceVim.git
synced 2025-01-23 22:20:06 +08:00
fix(unite): fix SPC i s
key binding
This commit is contained in:
parent
d932b16def
commit
95921517a7
@ -82,6 +82,11 @@ function! SpaceVim#layers#unite#config() abort
|
|||||||
call SpaceVim#mapping#space#def('nnoremap', ['r', 'l'], 'Unite resume', 'resume unite buffer', 1)
|
call SpaceVim#mapping#space#def('nnoremap', ['r', 'l'], 'Unite resume', 'resume unite buffer', 1)
|
||||||
let g:_spacevim_mappings_space.i = {'name' : '+Insertion'}
|
let g:_spacevim_mappings_space.i = {'name' : '+Insertion'}
|
||||||
call SpaceVim#mapping#space#def('nnoremap', ['i', 'u'], 'Unite unicode', 'search-and-insert-unicode', 1)
|
call SpaceVim#mapping#space#def('nnoremap', ['i', 'u'], 'Unite unicode', 'search-and-insert-unicode', 1)
|
||||||
|
if g:spacevim_snippet_engine ==# 'neosnippet'
|
||||||
|
call SpaceVim#mapping#space#def('nnoremap', ['i', 's'], 'Unite neosnippet', 'insert snippets', 1)
|
||||||
|
elseif g:spacevim_snippet_engine ==# 'ultisnips'
|
||||||
|
call SpaceVim#mapping#space#def('nnoremap', ['i', 's'], 'Unite ultisnips', 'insert snippets', 1)
|
||||||
|
endif
|
||||||
if has('nvim')
|
if has('nvim')
|
||||||
let cmd = 'Unite file_rec/neovim'
|
let cmd = 'Unite file_rec/neovim'
|
||||||
else
|
else
|
||||||
|
@ -179,6 +179,7 @@ To disable this feature, set the variable `auto_completion_enable_snippets_in_po
|
|||||||
| `M-/` | Expand a snippet if text before point is a prefix of a snippet |
|
| `M-/` | Expand a snippet if text before point is a prefix of a snippet |
|
||||||
| `SPC i s` | List all current snippets for inserting |
|
| `SPC i s` | List all current snippets for inserting |
|
||||||
|
|
||||||
NOTE: `SPC i s` requires that at least one fuzzy search layer be loaded.
|
NOTE: `SPC i s` requires that at least one fuzzy search layer be loaded. If the `snippet_engine` is `neosnippet`.
|
||||||
|
The fuzzy finder layer can be `leaderf`, `denite` or `unite`. For `ultisnips`, you can use `leaderf` or `unite` layer.
|
||||||
|
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user