Skip to content

Commit

Permalink
fix(cmd): lazy-cmds no longer show an error for buffer-local commands
Browse files Browse the repository at this point in the history
  • Loading branch information
folke committed Oct 14, 2023
1 parent a993bfd commit 3b31897
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lua/lazy/core/handler/cmd.lua
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 3b31897

Please sign in to comment.