diff --git a/lua/care/menu/confirm.lua b/lua/care/menu/confirm.lua index 1300f86..a36026c 100644 --- a/lua/care/menu/confirm.lua +++ b/lua/care/menu/confirm.lua @@ -93,8 +93,10 @@ return function(entry) end unblock() vim.schedule(function() - require("care").core.context = - require("care.context").new(require("care").core and require("care").core.context or nil) + if not require("care").core then + require("care").core = require("care.core").new() + end + require("care").core.context = require("care.context").new(require("care").core.context) require("care").core:complete(3) end) end