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
|
|
|
|
plugins = with pkgs.vimPlugins; [ 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
|
|
|
'';
|
|
|
|
};
|
|
|
|
}
|