|
@@ -265,7 +265,7 @@ M.config = function()
|
|
|
["<C-e>"] = cmp.mapping.abort(),
|
|
|
["<CR>"] = cmp.mapping(function(fallback)
|
|
|
if cmp.visible() then
|
|
|
- local confirm_opts = lvim.builtin.cmp.confirm_opts
|
|
|
+ local confirm_opts = vim.deepcopy(lvim.builtin.cmp.confirm_opts) -- avoid mutating the original opts below
|
|
|
local is_insert_mode = function()
|
|
|
return vim.api.nvim_get_mode().mode:sub(1, 1) == "i"
|
|
|
end
|