Description
Did you check docs and existing issues?
- I have read all the lazy.nvim docs
- I have updated the plugin to the latest version before submitting this issue
- I have searched the existing issues of lazy.nvim
- I have searched the existing issues of plugins related to this issue
Neovim version (nvim -v)
v0.10.1
Operating system/version
Nixos unstable
Describe the bug
When loading a plugin via the dir=
directive, there is no error shown if this fails. The plugin will just silently not be there, instead of showing an error message.
Example plugin definition:
{
dir = pluginpaths .. "/outline.nvim",
config = function()
-- Example mapping to toggle outline
vim.keymap.set("n", "<leader>o", "<cmd>Outline<CR>", { desc = "Toggle Outline" })
require("outline").setup({
-- Your setup opts here (leave empty to use defaults)
})
end,
},
If for some reason (e.g. a typo) the path in dir=
is missing outline.nvim
it will just not load the plugin, without showing any errors.
Steps To Reproduce
Try to load non-existent plugin from dir=
Expected Behavior
A error is shown
Repro
vim.env.LAZY_STDPATH = ".repro"
load(vim.fn.system("curl -s https://raw.githubusercontent.com/folke/lazy.nvim/main/bootstrap.lua"))()
require("lazy.minit").repro({
spec = {
{ dir = "/does/not/exist" }
},
})