devcontainer/config/nvim/plugins/autocomplete.lua
Job79 a67ea6c795
Some checks failed
Container build / container-build (push) Has been cancelled
feat: disable autocomplete with the enter key
2024-09-29 16:49:15 +02:00

10 lines
206 B
Lua

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,
}