1
0
Fork 0

nvim: Use <esc> to close cmp

This commit is contained in:
Daniel Kempkens 2022-08-07 17:53:47 +02:00
parent 5c3bea346e
commit 91dd2820c7

View file

@ -30,6 +30,7 @@
{:name :path}]) {:name :path}])
:mapping (cmp.mapping.preset.insert {:<C-e> (cmp.mapping {:i (cmp.mapping.abort) :mapping (cmp.mapping.preset.insert {:<C-e> (cmp.mapping {:i (cmp.mapping.abort)
:c (cmp.mapping.close)}) :c (cmp.mapping.close)})
:<esc> (cmp.mapping {:i (cmp.mapping.abort)})
:<Tab> (cmp.mapping {:c #(if (cmp.visible) :<Tab> (cmp.mapping {:c #(if (cmp.visible)
(cmp.select_next_item {:behavior cmp.SelectBehavior.Insert}) (cmp.select_next_item {:behavior cmp.SelectBehavior.Insert})
(cmp.complete)) (cmp.complete))