tests/neovim: add default/empty tests
Signed-off-by: Austin Horstman <khaneliman12@gmail.com>
This commit is contained in:
parent
bbd2e36fc9
commit
0b435f768e
3 changed files with 31 additions and 0 deletions
|
|
@ -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;
|
||||
}
|
||||
|
|
|
|||
10
tests/modules/programs/neovim/extra-lua-default.nix
Normal file
10
tests/modules/programs/neovim/extra-lua-default.nix
Normal file
|
|
@ -0,0 +1,10 @@
|
|||
{
|
||||
imports = [ ./stubs.nix ];
|
||||
|
||||
programs.neovim.enable = true;
|
||||
|
||||
nmt.script = ''
|
||||
nvimFolder="home-files/.config/nvim"
|
||||
assertPathNotExists "$nvimFolder/init.lua"
|
||||
'';
|
||||
}
|
||||
19
tests/modules/programs/neovim/extra-lua-empty-plugin.nix
Normal file
19
tests/modules/programs/neovim/extra-lua-empty-plugin.nix
Normal 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"
|
||||
'';
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue