From a67ea6c7956b550eb1b0e902d4807555e56596ea Mon Sep 17 00:00:00 2001 From: Job79 Date: Sun, 29 Sep 2024 16:49:15 +0200 Subject: [PATCH] feat: disable autocomplete with the enter key --- config/nvim/plugins/autocomplete.lua | 9 +++++++++ 1 file changed, 9 insertions(+) create mode 100644 config/nvim/plugins/autocomplete.lua diff --git a/config/nvim/plugins/autocomplete.lua b/config/nvim/plugins/autocomplete.lua new file mode 100644 index 0000000..dd78444 --- /dev/null +++ b/config/nvim/plugins/autocomplete.lua @@ -0,0 +1,9 @@ +return { + "hrsh7th/nvim-cmp", + opts = function(_, opts) + local cmp = require("cmp") + opts.mapping = vim.tbl_deep_extend("force", opts.mapping, { + [""] = cmp.config.disable, + }) + end, +}