[X] I have searched the existing issues of lazy.nvim
[X] I have searched the exsiting issues of plugins related to this issue
Neovim version (nvim -v)
NVIM v0.9.0-dev-588+g99cf11128
Operating system/version
6.1.4-arch1-1
Describe the bug
Fork of lualine has branch trouble-extension.
If trouble-extension is checked out everything is fine.
If I check out master, lualine complains that the trouble extension implemented in the trouble-extension branch does not exist.
cd ~/testing/lualine.nvim; git checkout trouble-extension; cd
nvim -u repro.lua repro.lua
No lualine error
Expected Behavior
Use the branch specified
Repro
-- DO NOT change the paths and don't remove the colorscheme
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", "https://github.com/folke/lazy.nvim.git", lazypath, })
end
vim.opt.runtimepath:prepend(lazypath)
-- install plugins
local plugins = {
"folke/tokyonight.nvim",
-- add any other plugins here
{
"nvim-lualine/lualine.nvim",
dev = true,
branch = "trouble-extension",
config = function()
require("lualine").setup({
extensions = { "trouble" },
})
end,
},
}
require("lazy").setup(plugins, {
root = root .. "/plugins",
dev = {
path = "~/testing",
},
})
vim.cmd.colorscheme("tokyonight")
-- add anything else here
If you use a local directory with dir= or with dev=, then all other properties related to the git repository are ignored.
Those directories are managed by the user, not lazy
Did you check docs and existing issues?
Neovim version (nvim -v)
NVIM v0.9.0-dev-588+g99cf11128
Operating system/version
6.1.4-arch1-1
Describe the bug
Fork of lualine has branch trouble-extension. If trouble-extension is checked out everything is fine. If I check out master, lualine complains that the trouble extension implemented in the trouble-extension branch does not exist.
Steps To Reproduce
git clone https://github.com/matthewsia98/lualine.nvim.git ~/testing/lualine.nvim
nvim -u repro.lua repro.lua
cd ~/testing/lualine.nvim; git checkout trouble-extension; cd
nvim -u repro.lua repro.lua
Expected Behavior
Use the branch specified
Repro