Failed to load removed plugin #912
-
I use the kickstart.nvim config and I add custom plugins in the nvim/lua/custom/plugins directory. It looks something like config/nvim/
├── init.lua
└── lua
├── autocmds.lua
├── custom
│ └── plugins
│ ├── init.lua
│ └── neo-tree.lua
└── kickstart
└── plugins
├── autoformat.lua
└── debug.lua Those customs plugins get loaded via the following code in my nvim/init.lua require('lazy').setup({
-- other stuff ...
{ import = 'custom.plugins },
}, {}) My problem is that sometimes I'll add a new plugin, and for that I create a new lua file in my custom/plugins dir. This works fine, except when I remove said plugin. If I delete that file, Lazy generates an error everytime I open neovim. I tried How do I fix this? Error message:
edit: This doesn't happen on a fresh machine. If I run neovim with the same config on a machine that never had the files I removed, it works fine. |
Beta Was this translation helpful? Give feedback.
Replies: 2 comments 11 replies
-
I can't reproduce this. I also don't see how this can happen. |
Beta Was this translation helpful? Give feedback.
-
What's the output of: require("lazy.core.util").lsmod("custom.plugins", function(modname, modpath)
print(modname .. ": " .. modpath)
end) put it in a file with lua extension and do |
Beta Was this translation helpful? Give feedback.
In a shell, what does
ls /Users/willyamarcand/.config/nvim/lua/custom/plugins/language-client-neovim.lua
say?