feat: disable autocomplete with the enter key
Some checks failed
Container build / container-build (push) Has been cancelled

This commit is contained in:
Job 2024-09-29 16:49:15 +02:00
parent 63ac1aae83
commit a67ea6c795
Signed by: Job79
SSH Key Fingerprint: SHA256:BezbKv3jZaqu7SdNrZM0e42b8nlNwh63zaVj/pUxc7U

View File

@ -0,0 +1,9 @@
return {
"hrsh7th/nvim-cmp",
opts = function(_, opts)
local cmp = require("cmp")
opts.mapping = vim.tbl_deep_extend("force", opts.mapping, {
["<CR>"] = cmp.config.disable,
})
end,
}