2020-09-25 02:08:39 +02:00
|
|
|
{ config, lib, pkgs, ... }:
|
|
|
|
|
|
|
|
with lib;
|
|
|
|
|
|
|
|
{
|
|
|
|
config = {
|
|
|
|
programs.neovim = {
|
|
|
|
enable = true;
|
|
|
|
extraConfig = ''
|
|
|
|
" This should be present in vimrc
|
|
|
|
'';
|
|
|
|
plugins = with pkgs.vimPlugins; [
|
|
|
|
vim-nix
|
|
|
|
{
|
|
|
|
plugin = vim-commentary;
|
|
|
|
config = ''
|
|
|
|
" This should be present too
|
|
|
|
autocmd FileType c setlocal commentstring=//\ %s
|
|
|
|
autocmd FileType c setlocal comments=://
|
|
|
|
'';
|
|
|
|
}
|
|
|
|
];
|
|
|
|
};
|
|
|
|
|
|
|
|
nmt.script = ''
|
2020-12-29 20:26:02 +01:00
|
|
|
vimrc="$TESTED/home-files/.config/nvim/init.vim"
|
2021-06-27 14:20:13 +02:00
|
|
|
vimrcNormalized="$(normalizeStorePaths "$vimrc")"
|
|
|
|
|
|
|
|
assertFileExists "$vimrc"
|
|
|
|
assertFileContent "$vimrcNormalized" "${./plugin-config.vim}"
|
2020-09-25 02:08:39 +02:00
|
|
|
'';
|
|
|
|
};
|
|
|
|
}
|
|
|
|
|