We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 7613ab2 commit 03419f3Copy full SHA for 03419f3
lua/lazy/core/handler/cmd.lua
@@ -35,7 +35,10 @@ function M:_add(cmd)
35
36
local info = vim.api.nvim_get_commands({})[cmd] or vim.api.nvim_buf_get_commands(0, {})[cmd]
37
if not info then
38
- return Util.error("Command `" .. cmd .. "` not found after loading " .. plugins)
+ vim.schedule(function()
39
+ Util.error("Command `" .. cmd .. "` not found after loading " .. plugins)
40
+ end)
41
+ return
42
end
43
44
command.nargs = info.nargs
0 commit comments