2021-06-03 19:37:53 +00:00
|
|
|
{ config, lib, pkgs, ... }:
|
|
|
|
|
|
|
|
with lib;
|
|
|
|
|
|
|
|
{
|
|
|
|
config = {
|
|
|
|
programs.neovim = {
|
|
|
|
enable = true;
|
|
|
|
vimAlias = true;
|
|
|
|
withNodeJs = false;
|
|
|
|
withPython3 = true;
|
|
|
|
withRuby = false;
|
|
|
|
|
|
|
|
extraPython3Packages = (ps: with ps; [ jedi pynvim ]);
|
2022-09-22 08:39:55 +00:00
|
|
|
|
|
|
|
# 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; })
|
|
|
|
];
|
2021-06-03 19:37:53 +00:00
|
|
|
};
|
|
|
|
nmt.script = ''
|
2022-09-22 08:39:55 +00:00
|
|
|
nvimFolder="home-files/.config/nvim"
|
|
|
|
assertPathNotExists "$nvimFolder/init.vim"
|
|
|
|
assertPathNotExists "$nvimFolder/init.lua"
|
2021-06-03 19:37:53 +00:00
|
|
|
'';
|
|
|
|
};
|
|
|
|
}
|