You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
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 outlinevim.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.
This just got me too. Wasn't until I noticed that I had mistyped the path of a local plugin, that I realized lazy.nvim couldn't find my local package and wasn't throwing an error.
❯ uname -a
Darwin drews-m1-mbp 23.6.0 Darwin Kernel Version 23.6.0: Mon Jul 29 21:14:30 PDT 2024; root:xnu-10063.141.2~1/RELEASE_ARM64_T6000 arm64
❯ nvim -v
NVIM v0.10.2
Build type: Release
LuaJIT 2.1.1727870382
Run "nvim -V1 -v"for more info
Did you check docs and existing issues?
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:
If for some reason (e.g. a typo) the path in
dir=
is missingoutline.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
The text was updated successfully, but these errors were encountered: