1
0
Fork 0
mirror of https://github.com/nix-community/home-manager synced 2024-11-01 08:49:44 +01:00
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 13:13:19 +01: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"
'';
};
}