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.9.0
Operating system/version
Linux
Describe the bug
User's ftdetect/* files run twice. It leads to auto commands' duplication.
Steps To Reproduce
Create ftdetect/test.lua file that prints some message
Run nvim without lazy to be sure that ftdetect/* files run once (message from ftdetect/test.lua appears once)
Run nvim with lazy having any configuration (message from ftdetect/test.lua appears twice)
Expected Behavior
User's ftdetect/* files run once.
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)
0.9.0
Operating system/version
Linux
Describe the bug
User's ftdetect/* files run twice. It leads to auto commands' duplication.
Steps To Reproduce
ftdetect/test.lua
file that prints some messagenvim
without lazy to be sure that ftdetect/* files run once (message fromftdetect/test.lua
appears once)nvim
with lazy having any configuration (message fromftdetect/test.lua
appears twice)Expected Behavior
User's ftdetect/* files run once.
Repro
The text was updated successfully, but these errors were encountered: