diff options
author | Gustaf Rydholm <gustaf.rydholm@gmail.com> | 2024-02-29 22:06:21 +0100 |
---|---|---|
committer | Gustaf Rydholm <gustaf.rydholm@gmail.com> | 2024-02-29 22:06:21 +0100 |
commit | a930568231f9903e2aefb5fd4cb03584044f2e1b (patch) | |
tree | 2ce5a9b8fcc97e7f08ef465cccf11773c9a0ac94 /fnl/plugins | |
parent | b57c8bb23d23fbc32537bbf17894605a44657664 (diff) |
Update cmp keymap for confirming
Diffstat (limited to 'fnl/plugins')
-rw-r--r-- | fnl/plugins/cmp.fnl | 14 |
1 files changed, 7 insertions, 7 deletions
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 {:<C-k> (cmp.mapping.select_prev_item) - :<C-j> (cmp.mapping.select_next_item) - :<C-b> (cmp.mapping (cmp.mapping.scroll_docs -1) + :mapping (cmp.mapping.preset.insert {:<c-k> (cmp.mapping.select_prev_item) + :<c-j> (cmp.mapping.select_next_item) + :<c-b> (cmp.mapping (cmp.mapping.scroll_docs -1) [:i :c]) - :<C-f> (cmp.mapping (cmp.mapping.scroll_docs 1) + :<c-f> (cmp.mapping (cmp.mapping.scroll_docs 1) [:i :c]) - :<C-space> (cmp.mapping (cmp.mapping.complete) + :<c-space> (cmp.mapping (cmp.mapping.complete) [:i :c]) - :<C-e> (cmp.mapping {:i (cmp.mapping.abort) + :<c-e> (cmp.mapping {:i (cmp.mapping.abort) :c (cmp.mapping.close)}) - :<tab> (cmp.mapping.confirm {:select true})}) + :<c-y> (cmp.mapping.confirm {:select true})}) :sources [{:name :nvim_lsp} {:name :nvim_lua} {:name :luasnip} |