home-manager/tests/modules/programs/neovim/no-init.nix

29 lines
638 B
Nix
Raw Normal View History

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