bug: Specifying `name` spec in `lazy.nvim` plugin configuration file causes it to clone the repo twice.
Did you check docs and existing issues?
- [X] I have read all the noice.nvim docs
- [X] I have searched the existing issues of noice.nvim
- [X] I have searched the existing issues of plugins related to this issue
Neovim version (nvim -v)
NVIM v0.10.0 Build type: Release LuaJIT 2.1.1716656478
Operating system/version
Arch Linux with Kernel 6.9.7
Describe the bug
After adding name = "Noise" in the installation file and running NeoVim, lazy.nvim clones the repo twice and stores it into two directories named "Noice" and "noice.nvim". Both of the plugins are loaded, while configurations like event = 'VeryLazy' are applied only to the former one.
Steps To Reproduce
- Simply add
name = "Noise"to the configuration file.
Expected Behavior
lazy.nvim loads and only loads the plugin once with the name shown as "Noice".
Repro
local root = vim.fn.fnamemodify("./.repro", ":p")
-- set stdpaths to use .repro
for _, name in ipairs({ "config", "data", "state", "cache" }) do
vim.env[("XDG_%s_HOME"):format(name:upper())] = root .. "/" .. name
end
-- bootstrap lazy
local lazypath = root .. "/plugins/lazy.nvim"
if not vim.loop.fs_stat(lazypath) then
vim.fn.system({
"git",
"clone",
"--filter=blob:none",
"--single-branch",
"https://github.com/folke/lazy.nvim.git",
lazypath,
})
end
vim.opt.runtimepath:prepend(lazypath)
-- install plugins
local plugins = {
"folke/tokyonight.nvim",
{
name = "Noice", "folke/noice.nvim",
event = "VeryLazy",
dependencies = {
"MunifTanjim/nui.nvim",
"rcarriga/nvim-notify",
},
},
}
require("lazy").setup(plugins, {
root = root .. "/plugins",
})
-- add anything else here
vim.opt.termguicolors = true
vim.cmd([[colorscheme tokyonight]])
require("noice").setup()
It will clone it again and the other one will be flagged for cleanup. That's how it's supposed to work
Sorry for the late reply. It seems that it didn't work like it's supposed to. My other plugins like the tokyonight colorscheme worked as desired, yet I have a noice.nvim placed under Loaded in the :Lazy list. Is there any other information I can provide?
Moved to lazy. Will check in the coming days. Low prio
Thanks!
This issue is stale because it has been open 30 days with no activity. Remove stale label or comment or this will be closed in 7 days.
This issue was closed because it has been stalled for 7 days with no activity.