We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent a993bfd commit 3b31897Copy full SHA for 3b31897
lua/lazy/core/handler/cmd.lua
@@ -33,7 +33,7 @@ function M:_add(cmd)
33
34
self:_load(cmd)
35
36
- local info = vim.api.nvim_get_commands({})[cmd]
+ 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)
39
end
0 commit comments