2020-09-25 02:08:39 +02:00
|
|
|
{ config, lib, pkgs, ... }:
|
|
|
|
|
|
|
|
with lib;
|
|
|
|
|
|
|
|
{
|
|
|
|
config = {
|
|
|
|
programs.neovim = {
|
|
|
|
enable = true;
|
|
|
|
extraConfig = ''
|
2022-08-23 22:02:05 +02:00
|
|
|
" This 'extraConfig' should be present in vimrc
|
2020-09-25 02:08:39 +02:00
|
|
|
'';
|
|
|
|
plugins = with pkgs.vimPlugins; [
|
|
|
|
vim-nix
|
|
|
|
{
|
|
|
|
plugin = vim-commentary;
|
|
|
|
config = ''
|
2022-08-23 22:02:05 +02:00
|
|
|
" plugin-specific config
|
2020-09-25 02:08:39 +02:00
|
|
|
autocmd FileType c setlocal commentstring=//\ %s
|
|
|
|
autocmd FileType c setlocal comments=://
|
|
|
|
'';
|
|
|
|
}
|
|
|
|
];
|
2022-02-16 16:38:10 +01:00
|
|
|
extraLuaPackages = [ pkgs.lua51Packages.luautf8 ];
|
2020-09-25 02:08:39 +02:00
|
|
|
};
|
|
|
|
|
|
|
|
nmt.script = ''
|
2022-09-23 13:33:17 +02:00
|
|
|
vimrc="$TESTED/home-files/.config/nvim/init-home-manager.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
|
|
|
'';
|
|
|
|
};
|
|
|
|
}
|
|
|
|
|