From 1e970a0b7faa5791b4f58c13c4c59063cc63cf6e Mon Sep 17 00:00:00 2001 From: Tim Keller Date: Tue, 14 Jan 2025 10:15:24 -0600 Subject: ctrl+jk for scrolling through cmp options --- lua/tjk/plugins/cmp.lua | 2 ++ 1 file changed, 2 insertions(+) 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 { --[''] = cmp.mapping.complete(), --[''] = cmp.mapping.abort(), --[''] = cmp.mapping.confirm({ select = true }), -- Accept currently selected item. Set `select` to `false` to only confirm explicitly selected items. + [""] = cmp.mapping.select_next_item { behavior = cmp.SelectBehavior.Insert }, + [""] = cmp.mapping.select_prev_item { behavior = cmp.SelectBehavior.Insert }, [''] = cmp.mapping.confirm({ select = true }), -- Accept currently selected item. Set `select` to `false` to only confirm explicitly selected items. }, } -- cgit v1.2.3