2021-06-03 21:37:53 +02: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 10:39:55 +02:00
|
|
|
|
|
|
|
# plugins without associated config should not trigger the creation of init.vim
|
|
|
|
plugins = with pkgs.vimPlugins; [ fugitive ({ plugin = vim-sensible; }) ];
|
2021-06-03 21:37:53 +02:00
|
|
|
};
|
|
|
|
nmt.script = ''
|
2022-09-22 10:39:55 +02:00
|
|
|
nvimFolder="home-files/.config/nvim"
|
|
|
|
assertPathNotExists "$nvimFolder/init.vim"
|
|
|
|
assertPathNotExists "$nvimFolder/init.lua"
|
2021-06-03 21:37:53 +02:00
|
|
|
'';
|
|
|
|
};
|
|
|
|
}
|