summaryrefslogtreecommitdiff
path: root/after/plugin
diff options
context:
space:
mode:
Diffstat (limited to 'after/plugin')
-rw-r--r--after/plugin/lsp.lua2
1 files changed, 2 insertions, 0 deletions
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({
['<C-n>'] = cmp.mapping.select_next_item(cmp_select),
['<C-y>'] = cmp.mapping.confirm({ select = true }),
["<C-Space>"] = cmp.mapping.complete(),
+ ["<CR>"] = cmp.mapping.confirm({ select = true }),
})
+
-- disable completion with tab
-- this helps with copilot setup
cmp_mappings['<Tab>'] = nil