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 searched the existing issues of plugins related to this issue
Neovim version (nvim -v)
0.8.3
Operating system/version
Kubuntu 20.04
Describe the bug
When using the tpope/vim-fugitive plugin, saving the staged version of the file, which has a "virtual" path starting with fugitive:// results in the folder fugitive: being created. This is caused by the lazyvim_auto_create_dir autocmd introduced in #493.
Not sure how this should be handled, but since fugitive is one of the most popular git plugins, at the very least this should be documented and the steps to disable the autocmd should be mentioned.
Steps To Reproduce
Install tpope/vim-fugitive
Inside a git repo, open an existing file
Run :Gdiff and switch to the other buffer
Modify and save (:w)
fugitive: directory is created
Expected Behavior
The fugitive: directory shouldn't be created.
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",
"folke/LazyVim",
-- add any other plugins here"tpope/vim-fugitive",
}
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)
0.8.3
Operating system/version
Kubuntu 20.04
Describe the bug
When using the
tpope/vim-fugitive
plugin, saving the staged version of the file, which has a "virtual" path starting withfugitive://
results in the folderfugitive:
being created. This is caused by thelazyvim_auto_create_dir
autocmd introduced in #493.Not sure how this should be handled, but since fugitive is one of the most popular git plugins, at the very least this should be documented and the steps to disable the autocmd should be mentioned.
Steps To Reproduce
tpope/vim-fugitive
:Gdiff
and switch to the other buffer:w
)fugitive:
directory is createdExpected Behavior
The
fugitive:
directory shouldn't be created.Repro
The text was updated successfully, but these errors were encountered: