mirror of
https://github.com/nix-community/home-manager.git
synced 2026-10-02 19:49:18 +00:00
Add option to control generation of `init.lua` to allow opting out of the automatic generation. Add news entry about changed behavior and new option.
22 lines
636 B
Nix
22 lines
636 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" ''
|
|
vim.g.loaded_node_provider=0;vim.g.loaded_perl_provider=0;vim.g.ruby_host_prog='/nix/store/00000000000000000000000000000000-neovim-ruby-env/bin/neovim-ruby-host';vim.g.python3_host_prog='/nix/store/00000000000000000000000000000000-nvim-host-python3/bin/nvim-python3'
|
|
-- initLua
|
|
''}
|
|
'';
|
|
}
|