mirror of
https://mzte.de/git/LordMZTE/dotfiles.git
synced 2024-06-08 14:29:29 +02:00
add ctrl-tab cmp keybind
This commit is contained in:
parent
8e699bd788
commit
a5a989f55b
|
@ -15,6 +15,10 @@
|
|||
:<C-Space> (cmp.mapping (cmp.mapping.complete) [:i :c])
|
||||
:<Tab> (cmp.mapping mztenv.cmp.onTab [:i :s])
|
||||
:<S-Tab> (cmp.mapping (cmp.mapping.select_prev_item))
|
||||
:<C-Tab> (cmp.mapping #(if (luasnip.expand_or_jumpable)
|
||||
(luasnip.expand_or_jump)
|
||||
($1))
|
||||
[:i :s])
|
||||
:<CR> (cmp.mapping.confirm {:select true})}
|
||||
:sources (cmp.config.sources (icollect [n _ (pairs sources)]
|
||||
{:name n}))
|
||||
|
|
Loading…
Reference in a new issue