1
0
mirror of https://github.com/nix-community/home-manager synced 2024-06-02 13:03:33 +02:00
home-manager/tests/modules/programs/neovim/plugin-config.nix
Robert Helgesson f4998f0adc
tests: bump nmt
2021-06-27 14:20:13 +02:00

35 lines
742 B
Nix

{ 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 = ''
vimrc="$TESTED/home-files/.config/nvim/init.vim"
vimrcNormalized="$(normalizeStorePaths "$vimrc")"
assertFileExists "$vimrc"
assertFileContent "$vimrcNormalized" "${./plugin-config.vim}"
'';
};
}