diff options
author | Tim Keller <tjkeller.xyz> | 2025-01-14 10:15:24 -0600 |
---|---|---|
committer | Tim Keller <tjkeller.xyz> | 2025-01-14 10:15:24 -0600 |
commit | 1e970a0b7faa5791b4f58c13c4c59063cc63cf6e (patch) | |
tree | 3386a694c2e8829392a7ae0a6c66f3f2bfb70ba8 /lua/tjk/plugins/cmp.lua | |
parent | 0002b2cfb64b25029322bd7dc0031c63e19ade08 (diff) | |
download | nvim-1e970a0b7faa5791b4f58c13c4c59063cc63cf6e.tar.xz nvim-1e970a0b7faa5791b4f58c13c4c59063cc63cf6e.zip |
ctrl+jk for scrolling through cmp options
Diffstat (limited to 'lua/tjk/plugins/cmp.lua')
-rw-r--r-- | lua/tjk/plugins/cmp.lua | 2 |
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. }, } |