From 43141e4803f9297cc62449137257d2444ac3233f Mon Sep 17 00:00:00 2001 From: Mitchell Riedstra Date: Sun, 26 Nov 2023 12:42:18 -0500 Subject: Allow selecting of completion items --- after/plugin/lsp.lua | 2 ++ 1 file changed, 2 insertions(+) (limited to 'after/plugin/lsp.lua') diff --git a/after/plugin/lsp.lua b/after/plugin/lsp.lua index efb6ce9..32b1d04 100644 --- a/after/plugin/lsp.lua +++ b/after/plugin/lsp.lua @@ -42,8 +42,10 @@ local cmp_mappings = lsp.defaults.cmp_mappings({ [''] = cmp.mapping.select_next_item(cmp_select), [''] = cmp.mapping.confirm({ select = true }), [""] = cmp.mapping.complete(), + [""] = cmp.mapping.confirm({ select = true }), }) + -- disable completion with tab -- this helps with copilot setup cmp_mappings[''] = nil -- cgit v1.2.3