diff --git a/lua/lazyvim/plugins/coding.lua b/lua/lazyvim/plugins/coding.lua index db83a9f8..9a3f674a 100644 --- a/lua/lazyvim/plugins/coding.lua +++ b/lua/lazyvim/plugins/coding.lua @@ -37,7 +37,7 @@ return { [""] = cmp.mapping.complete(), [""] = cmp.mapping.abort(), [""] = function(fallback) - if cmp.visible() then + if cmp.core.view:visible() or vim.fn.pumvisible() == 1 then LazyVim.create_undo() if cmp.confirm({ select = true }) then return