Closed polirritmico closed 2 weeks ago
mininit.lua
--- Minimal init -- run with `nvim -u mininit.lua` -- set stdpaths to use repro folder local root = vim.fn.fnamemodify("./mininit", ":p") 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.uv.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) -- plugins local plugins = { { "nvim-lualine/lualine.nvim", -- commit = "e208967", dependencies = { "nvim-tree/nvim-web-devicons" }, event = "VeryLazy", opts = {}, }, { "stevearc/oil.nvim", dependencies = { "nvim-tree/nvim-web-devicons" }, lazy = true, }, } require("lazy").setup(plugins, { root = root .. "/plugins", })
git init && git add mininit.lua && git commit -m "base commit"
nvim -u mininit.lua
:=require("lazy.core.config").plugins["oil.nvim"]._.loaded
Checkout to commit e208967 work as expected (after previous steps):
sed -i '21 s/-- //' mininit.lua
:Lazy sync
Lualine should not force the load of oil.nvim
Lualine is forcing the load of oil.nvim
$ nvim --version NVIM v0.10.0 Build type: Release LuaJIT 2.1.0-beta3
:=require("lazy.core.config").version 11.10.4
Edit: fat fingers typo
Here is the problematic PR: #1242
Self Checks
How to reproduce the problem
Minimal config
mininit.lua
:mininit.lua
into itgit init && git add mininit.lua && git commit -m "base commit"
nvim -u mininit.lua
nvim -u mininit.lua
:=require("lazy.core.config").plugins["oil.nvim"]._.loaded
Checkout to commit e208967 work as expected (after previous steps):
sed -i '21 s/-- //' mininit.lua
nvim -u mininit.lua
:Lazy sync
nvim -u mininit.lua
:=require("lazy.core.config").plugins["oil.nvim"]._.loaded
Expected behaviour
Lualine should not force the load of oil.nvim
Actual behaviour
Lualine is forcing the load of oil.nvim
Additional information
Edit: fat fingers typo