diff options
| author | Mitchell Riedstra <mitch@riedstra.dev> | 2023-11-26 12:42:18 -0500 |
|---|---|---|
| committer | Mitchell Riedstra <mitch@riedstra.dev> | 2023-11-26 12:42:18 -0500 |
| commit | 43141e4803f9297cc62449137257d2444ac3233f (patch) | |
| tree | c9e1c244ed8a1fa56b34a55c25c6ae3b975b142b | |
| parent | 1313ecb6f632136c279df3b850d8560d20b28b02 (diff) | |
| download | nvim-config-43141e4803f9297cc62449137257d2444ac3233f.tar.gz nvim-config-43141e4803f9297cc62449137257d2444ac3233f.tar.xz | |
Allow selecting of completion items
| -rw-r--r-- | after/plugin/lsp.lua | 2 |
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 |
