diff 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. }, } |