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
When editing files on my dotfiles repo, I have GIT_DIR defined to make it simple to connect to my git repo which is in a different directory. When I switched from Packer to Lazy.nvim, I stopped being able to update plugins unless the GIT_DIR environment variable was unset because Lazy.nvim is calling git and git is picking up on GIT_DIR. We should probably unset GIT_DIR on the forked git process.
Steps To Reproduce
Export a GIT_DIR environment variable
Enter Neovim
Run :Lazy sync
Expected Behavior
I expect the plugins to update correctly.
Repro
-- DO NOT change the paths and don't remove the colorschemelocalroot=vim.fn.fnamemodify("./.repro", ":p")
-- set stdpaths to use .reprofor_, nameinipairs({ "config", "data", "state", "cache" }) dovim.env[("XDG_%s_HOME"):format(name:upper())] =root.."/" ..nameend-- bootstrap lazylocallazypath=root.."/plugins/lazy.nvim"ifnotvim.loop.fs_stat(lazypath) thenvim.fn.system({ "git", "clone", "--filter=blob:none", "https://github.com/folke/lazy.nvim.git", lazypath, })
endvim.opt.runtimepath:prepend(lazypath)
-- install pluginslocalplugins= {
"folke/tokyonight.nvim",
-- add any other plugins here
}
require("lazy").setup(plugins, {
root=root.."/plugins",
})
vim.cmd.colorscheme("tokyonight")
-- add anything else here
The text was updated successfully, but these errors were encountered:
Did you check docs and existing issues?
Neovim version (nvim -v)
NVIM v0.8.2 Build type: Release LuaJIT 2.1.0-beta3 Compiled by brew@Ventura-arm64.local
Operating system/version
MacOS 13.1
Describe the bug
When editing files on my dotfiles repo, I have
GIT_DIR
defined to make it simple to connect to my git repo which is in a different directory. When I switched from Packer to Lazy.nvim, I stopped being able to update plugins unless theGIT_DIR
environment variable was unset because Lazy.nvim is calling git and git is picking up onGIT_DIR
. We should probably unsetGIT_DIR
on the forkedgit
process.Steps To Reproduce
:Lazy sync
Expected Behavior
I expect the plugins to update correctly.
Repro
The text was updated successfully, but these errors were encountered: