Files
home-manager/tests/modules/programs/neovim/no-init-lua.nix
Veselin Ivanov 565e534920 neovim: expose sideloadInitLua option to control the generation of init.lua
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.
2026-04-17 14:27:57 -05:00

38 lines
694 B
Nix

{ pkgs, ... }:
{
imports = [ ./stubs.nix ];
programs.neovim = {
enable = true;
vimAlias = true;
withNodeJs = false;
withPython3 = true;
withRuby = false;
sideloadInitLua = true;
extraPython3Packages = (
ps: with ps; [
jedi
pynvim
]
);
# plugins without associated config should not trigger the creation of init.vim
plugins = with pkgs.vimPlugins; [
vim-fugitive
{ plugin = vim-sensible; }
];
initLua = ''
-- initLua
'';
};
nmt.script = ''
nvimFolder="home-files/.config/nvim"
assertPathNotExists "$nvimFolder/init.vim"
assertPathNotExists "$nvimFolder/init.lua"
'';
}