summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorTim Keller <tjkeller.xyz>2025-01-14 10:15:24 -0600
committerTim Keller <tjkeller.xyz>2025-01-14 10:15:24 -0600
commit1e970a0b7faa5791b4f58c13c4c59063cc63cf6e (patch)
tree3386a694c2e8829392a7ae0a6c66f3f2bfb70ba8
parent0002b2cfb64b25029322bd7dc0031c63e19ade08 (diff)
downloadnvim-1e970a0b7faa5791b4f58c13c4c59063cc63cf6e.tar.xz
nvim-1e970a0b7faa5791b4f58c13c4c59063cc63cf6e.zip
ctrl+jk for scrolling through cmp options
-rw-r--r--lua/tjk/plugins/cmp.lua2
1 files changed, 2 insertions, 0 deletions
diff --git a/lua/tjk/plugins/cmp.lua b/lua/tjk/plugins/cmp.lua
index 7bc4234..346e006 100644
--- a/lua/tjk/plugins/cmp.lua
+++ b/lua/tjk/plugins/cmp.lua
@@ -21,6 +21,8 @@ return {
--['<C-Space>'] = cmp.mapping.complete(),
--['<C-e>'] = cmp.mapping.abort(),
--['<CR>'] = cmp.mapping.confirm({ select = true }), -- Accept currently selected item. Set `select` to `false` to only confirm explicitly selected items.
+ ["<C-j>"] = cmp.mapping.select_next_item { behavior = cmp.SelectBehavior.Insert },
+ ["<C-k>"] = cmp.mapping.select_prev_item { behavior = cmp.SelectBehavior.Insert },
['<Tab>'] = cmp.mapping.confirm({ select = true }), -- Accept currently selected item. Set `select` to `false` to only confirm explicitly selected items.
},
}