Open
Description
Did you check docs and existing issues?
- I have read all the lazy.nvim docs
- I have updated the plugin to the latest version before submitting this issue
- I have searched the existing issues of lazy.nvim
- I have searched the existing issues of plugins related to this issue
Neovim version (nvim -v)
0.11.0
Operating system/version
Arch linux
Describe the bug
user_is_lua.mp4
When the username is "lua", lazy.nvim
silently fails to autoload a plugin onrequire
Steps To Reproduce
Setup:
sudo useradd -m -c "Lua test user" lua
sudo su lua
cd
mkdir -p .config/nvim
# ... cp the supplied repro...
nvim init.lua
# ... wait for the installation to complete ...
nvim init.lua
Reproduce:
Type: :lua require("lualine")
and enter
Teardown:
exit
sudo userdel lua
rm -rf /home/lua
Expected Behavior
Normally, given the supplied repro
, lualine would appear after typing :lua require("lualine")
and enter.
Repro
vim.env.LAZY_STDPATH = ".repro"
load(vim.fn.system("curl -s https://raw.githubusercontent.com/folke/lazy.nvim/main/bootstrap.lua"))()
require("lazy.minit").repro({
spec = {
{ "nvim-lualine/lualine.nvim", lazy = true, opts = {} },
},
})