1
0
Fork 0
mirror of https://github.com/nix-community/home-manager synced 2024-12-26 19:59:47 +01:00
home-manager/tests/modules/programs/neovim/plugin-config.nix

36 lines
822 B
Nix
Raw Normal View History

{ 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
'';
plugins = with pkgs.vimPlugins; [
vim-nix
{
plugin = vim-commentary;
config = ''
2022-08-23 22:02:05 +02:00
" plugin-specific config
autocmd FileType c setlocal commentstring=//\ %s
autocmd FileType c setlocal comments=://
'';
}
];
extraLuaPackages = [ pkgs.lua51Packages.luautf8 ];
};
nmt.script = ''
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}"
'';
};
}