Open 4jamesccraven opened 2 days ago
I ran into this issue. After some investigation and talking to a friend I believe this is not a home-manager issue, but actually because of a nixpkgs neovim update, I believe this is the offending commit: https://github.com/NixOS/nixpkgs/commit/2f4291af950f6edbcf2d80610c27380e5112f426 but I was not able to confirm it yet.
@rafaelrc7 I tried with that version, but that doesn't seem to be the commit that introduced it. After some testing it seems this commit introduced the issue https://github.com/NixOS/nixpkgs/commit/12dafac23cc3d9998cc5a4ce3485bad1bbba3ae9. I was able to change my flake to point at the parent commit of the problem version to fix my local environment:
nixpkgs.url = "github:nixos/nixpkgs/11cf80ae321c35132c1aff950f026e9783f06fec";
Seems like the config
attribute of every neovim.plugins
item is ignored.
I think this PR fixes this issue: https://github.com/nix-community/home-manager/pull/5976
Testing it locally, it works for me at least!
Seems like the
config
attribute of everyneovim.plugins
item is ignored.
All of my type=lua
plugin.config attributes seem to make it over to init.lua, but the type=viml
ones are lost completely.
the change comes indeed fron the nixpkgs change. Behavor of makeNeovimConfig
has changed a bit.
Can anyone confirm https://github.com/nix-community/home-manager/pull/5976 fixes their issues ? If yes I can merge.
@teto It worked for me.
Are you following the right branch?
Is there an existing issue for this?
Issue description
After the latest update to my config, my plugins are built but are no longer sourced into my init.lua as before. Previously the file symlinked to
$HOME/.config/nvim/init.lua
generated byprograms.neovim.extraLuaConfig
would contain a line that would source the config generated to init.vim inside/nix/store
. This is no longer the case. Additionally, a .drv file was found for the init.vim that should be generated, but on inspecting the intended output withnix derivation show
, I found that it was not generated. All of the plugins were built into the store, but for whatever reason the file (which was in the text body of the derivation file) was not built and was not linked into init.lua. I have attached myneovim.nix
as well the flake.lock file that shows the exact builds of home-manager and nixpkgs that causes this issue.neovim.nix
flake.lock
Maintainer CC
No response
System information