mirror of
https://github.com/nix-community/home-manager
synced 2024-12-05 01:19:46 +01:00
e704ef9ec7
(cherry picked from commit 848ae0d6bb
)
28 lines
638 B
Nix
28 lines
638 B
Nix
{ 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
|
|
plugins = with pkgs.vimPlugins; [
|
|
vim-fugitive
|
|
({ plugin = vim-sensible; })
|
|
];
|
|
};
|
|
nmt.script = ''
|
|
nvimFolder="home-files/.config/nvim"
|
|
assertPathNotExists "$nvimFolder/init.vim"
|
|
assertPathNotExists "$nvimFolder/init.lua"
|
|
'';
|
|
};
|
|
}
|