add ctrl-tab cmp keybind

This commit is contained in:
LordMZTE 2023-05-28 18:29:21 +02:00
parent 8e699bd788
commit a5a989f55b
Signed by: LordMZTE
GPG key ID: B64802DC33A64FF6

View file

@ -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}))