Closed B4rc1 closed 1 year ago
I see you're using Nix. Might be related to that. What gets printed if you execute the code below?
local Util = require("lazy.core.util")
Util.lsmod("plugins", function(modname, modpath)
print(modname .. ": " .. modpath)
end)
Is there anything else special about your Nix env I should know?
Lazy resets the rtp, so that might cause issues with Nix somehow. Try setting config.performane.rtp.reset = false
What gets printed if you execute the code below?
Nothing at all gets printed?! I tried inserting it into a file and running :so %
, entering it into commandline like :lua require("lazy.core.util").lsmod("plugins", function(modname, modpath) print(modname .. ": " .. modpath) end)
and inserting it into my init.lua
Is there anything else special about your Nix env I should know?
All my neovim config files are symlinks into the nix store (only the files, not the folders):
❯ ls -la .config/nvim
drwxr-xr-x - jonas 21 Dez 16:14 ftplugin
drwxr-xr-x - jonas 21 Dez 16:14 lua
lrwxrwxrwx 86 jonas 21 Dez 16:14 .gitignore -> /nix/store/3jwb4cc4r0yqgsyw16c611z03ssalrpw-home-manager-files/.config/nvim/.gitignore
lrwxrwxrwx 84 jonas 21 Dez 16:14 init.lua -> /nix/store/3jwb4cc4r0yqgsyw16c611z03ssalrpw-home-manager-files/.config/nvim/init.lua
.rw-r--r-- 4,2k jonas 21 Dez 13:37 lazy-lock.json
This also means, that all files are readonly from neovims perspective.
And I generate some paths to lspservers in nix and source them in neovim, this sould however not matter here.
Try setting
config.performane.rtp.reset = false
Did not change a thing. Same problem
gotcha. It's because they are links instead of files. Will change it so it works for links too
Hey, I tried migrating from packer to lazy. My current plugin structure is this.
In my init.lua i specify:
The readme tells me:
But currently only the
~/.config/nvim/lua/plugins/init.lua
file gets sourced and plugins installed from it. For example my fuzzy finder is neither loaded nor installed::lua require('fzf-lua').files()
:What am I missing?