summaryrefslogtreecommitdiff
path: root/fnl/config/cmp.fnl
diff options
context:
space:
mode:
Diffstat (limited to 'fnl/config/cmp.fnl')
-rw-r--r--fnl/config/cmp.fnl9
1 files changed, 6 insertions, 3 deletions
diff --git a/fnl/config/cmp.fnl b/fnl/config/cmp.fnl
index 26e7f66..93e08f0 100644
--- a/fnl/config/cmp.fnl
+++ b/fnl/config/cmp.fnl
@@ -1,5 +1,7 @@
;; Configuration for completion plugin.
-(module config.cmp {autoload {nvim aniseed.nvim util util}})
+(module config.cmp
+ {autoload {nvim aniseed.nvim
+ util util}})
(let [cmp (util.load-plugin :cmp)
lspkind (util.load-plugin :lspkind)
@@ -10,7 +12,8 @@
(cmp.setup {
:snippet {:expand (fn [args]
(luasnip.lsp_expand args.body))}
- :mapping {:<C-k> (cmp.mapping.select_prev_item)
+ :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])
@@ -19,7 +22,7 @@
:<C-e> (cmp.mapping {:i (cmp.mapping.abort)
:c (cmp.mapping.close)})
:<CR> (cmp.mapping.confirm {:select true})
- :<CR> (cmp.mapping.confirm {:select true})}
+ :<CR> (cmp.mapping.confirm {:select true})})
:sources [{:name :nvim_lsp}
{:name :nvim_lua}
{:name :luasnip}