mirror of https://github.com/folke/lazy.nvim.git
fix(cmd): lazy-cmds no longer show an error for buffer-local commands
This commit is contained in:
parent
a993bfd6de
commit
3b31897275
|
@ -33,7 +33,7 @@ function M:_add(cmd)
|
|||
|
||||
self:_load(cmd)
|
||||
|
||||
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]
|
||||
if not info then
|
||||
return Util.error("Command `" .. cmd .. "` not found after loading " .. plugins)
|
||||
end
|
||||
|
|
Loading…
Reference in New Issue