1
0
Fork 0
mirror of https://github.com/nix-community/home-manager synced 2024-11-16 08:09:45 +01:00
home-manager/tests/modules/programs/neovim/runtime.nix

40 lines
919 B
Nix
Raw Normal View History

2022-08-23 22:02:05 +02:00
{ config, lib, pkgs, ... }:
with lib;
{
config = {
programs.neovim = lib.mkMerge [
{
enable = true;
plugins = with pkgs.vimPlugins; [
vim-nix
{
plugin = vim-commentary;
runtime = {
"after/ftplugin/c.vim".text = ''
" plugin-specific config
setlocal commentstring=//\ %s
setlocal comments=://
'';
};
}
];
}
{
extraPython3Packages = ps: with ps; [ jedi pynvim ];
extraLuaPackages = ps: with ps; [ luacheck ];
}
{
extraPython3Packages = with pkgs.python3Packages; [ jedi pynvim ];
extraLuaPackages = with pkgs.lua51Packages; [ luacheck ];
}
];
2022-08-23 22:02:05 +02:00
nmt.script = ''
ftplugin="home-files/.config/nvim/after/ftplugin/c.vim"
assertFileExists "$ftplugin"
'';
};
}