From a930568231f9903e2aefb5fd4cb03584044f2e1b Mon Sep 17 00:00:00 2001 From: Gustaf Rydholm Date: Thu, 29 Feb 2024 22:06:21 +0100 Subject: Update cmp keymap for confirming --- fnl/plugins/cmp.fnl | 14 +++++++------- 1 file changed, 7 insertions(+), 7 deletions(-) (limited to 'fnl/plugins') diff --git a/fnl/plugins/cmp.fnl b/fnl/plugins/cmp.fnl index eae54af..2b4baaa 100644 --- a/fnl/plugins/cmp.fnl +++ b/fnl/plugins/cmp.fnl @@ -21,20 +21,20 @@ (cmp.setup {:snippet {:expand (fn [args] (luasnip.lsp_expand args.body))} :completion {:completopt "menu,menuone,noinsert"} - :mapping (cmp.mapping.preset.insert {: (cmp.mapping.select_prev_item) - : (cmp.mapping.select_next_item) - : (cmp.mapping (cmp.mapping.scroll_docs -1) + :mapping (cmp.mapping.preset.insert {: (cmp.mapping.select_prev_item) + : (cmp.mapping.select_next_item) + : (cmp.mapping (cmp.mapping.scroll_docs -1) [:i :c]) - : (cmp.mapping (cmp.mapping.scroll_docs 1) + : (cmp.mapping (cmp.mapping.scroll_docs 1) [:i :c]) - : (cmp.mapping (cmp.mapping.complete) + : (cmp.mapping (cmp.mapping.complete) [:i :c]) - : (cmp.mapping {:i (cmp.mapping.abort) + : (cmp.mapping {:i (cmp.mapping.abort) :c (cmp.mapping.close)}) - : (cmp.mapping.confirm {:select true})}) + : (cmp.mapping.confirm {:select true})}) :sources [{:name :nvim_lsp} {:name :nvim_lua} {:name :luasnip} -- cgit v1.2.3-70-g09d2