tests/neovim: add default/empty tests

Signed-off-by: Austin Horstman <khaneliman12@gmail.com>
This commit is contained in:
Austin Horstman 2026-01-22 19:28:28 -06:00
parent bbd2e36fc9
commit 0b435f768e
3 changed files with 31 additions and 0 deletions

View file

@ -7,4 +7,6 @@
# waiting for a nixpkgs patch
neovim-no-init = ./no-init.nix;
neovim-extra-lua-init = ./extra-lua-init.nix;
neovim-extra-lua-default = ./extra-lua-default.nix;
neovim-extra-lua-empty-plugin = ./extra-lua-empty-plugin.nix;
}

View file

@ -0,0 +1,10 @@
{
imports = [ ./stubs.nix ];
programs.neovim.enable = true;
nmt.script = ''
nvimFolder="home-files/.config/nvim"
assertPathNotExists "$nvimFolder/init.lua"
'';
}

View file

@ -0,0 +1,19 @@
{ pkgs, ... }:
{
imports = [ ./stubs.nix ];
programs.neovim = {
enable = true;
plugins = [
{
plugin = pkgs.vimPlugins.vim-nix;
type = "lua";
}
];
};
nmt.script = ''
initLua="home-files/.config/nvim/init.lua"
assertPathNotExists "$initLua"
'';
}