2.home-manager/tests/modules/programs/neovim/extra-lua-init.nix
teto 1c10e6596f neovim: now include nixpkgs wrapper generated lua
now that home-manager always generates an init.lua we can take the
wrapper output instead of reimplemnting stuff in HM (notwithstanding rtp
changes that are not needed in HM).
This is necessary to keep the provider configuration available after
this change https://github.com/NixOS/nixpkgs/pull/487390

Also updated test to reflect ruby disabling
2026-03-19 18:24:53 -05:00

20 lines
363 B
Nix

{
imports = [ ./stubs.nix ];
programs.neovim = {
enable = true;
initLua = ''
-- initLua
'';
};
nmt.script = ''
initLua="home-files/.config/nvim/init.lua"
initLuaNormalized="$(normalizeStorePaths "$initLua")"
assertFileContent "$initLuaNormalized" ${builtins.toFile "init.lua-expected" ''
-- initLua
''}
'';
}