devcontainer/config/nvim/plugins/autocomplete.lua

11 lines
228 B
Lua

-- Disable autocomplete on enter.
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,
}