2021-06-07 22:52:17 +00:00
|
|
|
{ vimUtils, vim_configurable, writeText, vimPlugins
|
|
|
|
, lib, fetchFromGitHub
|
2021-05-28 21:44:43 +00:00
|
|
|
, pkgs
|
2021-04-21 10:55:05 +00:00
|
|
|
}:
|
|
|
|
let
|
|
|
|
inherit (vimUtils) buildVimPluginFrom2Nix;
|
|
|
|
|
|
|
|
packages.myVimPackage.start = with vimPlugins; [ vim-nix ];
|
2021-05-21 10:48:43 +00:00
|
|
|
|
2021-04-21 10:55:05 +00:00
|
|
|
in
|
2021-06-07 22:52:17 +00:00
|
|
|
pkgs.recurseIntoAttrs (rec {
|
2021-04-21 10:55:05 +00:00
|
|
|
vim_empty_config = vimUtils.vimrcFile { beforePlugins = ""; customRC = ""; };
|
|
|
|
|
2021-05-21 10:48:43 +00:00
|
|
|
### vim tests
|
2021-05-25 20:37:57 +00:00
|
|
|
##################
|
2021-04-21 10:55:05 +00:00
|
|
|
|
|
|
|
test_vim_with_vim_nix_using_plug = vim_configurable.customize {
|
|
|
|
name = "vim-with-vim-addon-nix-using-plug";
|
|
|
|
vimrcConfig.plug.plugins = with vimPlugins; [ vim-nix ];
|
|
|
|
};
|
|
|
|
|
|
|
|
test_vim_with_vim_nix = vim_configurable.customize {
|
|
|
|
name = "vim-with-vim-addon-nix";
|
|
|
|
vimrcConfig.packages.myVimPackage.start = with vimPlugins; [ vim-nix ];
|
|
|
|
};
|
2021-05-28 21:44:43 +00:00
|
|
|
})
|