diff options
| author | Daniel RodrÃguez Rivero <[email protected]> | 2022-09-01 13:52:36 +0200 | 
|---|---|---|
| committer | GitHub <[email protected]> | 2022-09-01 13:52:36 +0200 | 
| commit | 90c9bd943e83a6d2c626792d91b80f9af621343d (patch) | |
| tree | b7edacb9f611e76870e710278685c7b3f1da6e7f /lua/lvim | |
| parent | 62a17376997fb7cf01e288cb2f6c769e8ec7a39e (diff) | |
fix(cmp): do not mutate the original confirm_opts on CR (#2979)
Diffstat (limited to 'lua/lvim')
| -rw-r--r-- | lua/lvim/core/cmp.lua | 2 | 
1 files changed, 1 insertions, 1 deletions
| diff --git a/lua/lvim/core/cmp.lua b/lua/lvim/core/cmp.lua index 10cf56be..7b0b0e6e 100644 --- a/lua/lvim/core/cmp.lua +++ b/lua/lvim/core/cmp.lua @@ -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 | 
