2022-12-17 10:02:37 +00:00
|
|
|
{ vimUtils, vim-full, writeText, vimPlugins
|
2021-06-28 23:13:55 +00:00
|
|
|
, lib, fetchFromGitHub
|
|
|
|
, pkgs
|
2021-04-22 02:08:21 +00:00
|
|
|
}:
|
|
|
|
let
|
|
|
|
inherit (vimUtils) buildVimPluginFrom2Nix;
|
|
|
|
|
|
|
|
packages.myVimPackage.start = with vimPlugins; [ vim-nix ];
|
2021-05-28 09:39:13 +00:00
|
|
|
|
2021-04-22 02:08:21 +00:00
|
|
|
in
|
2021-06-28 23:13:55 +00:00
|
|
|
pkgs.recurseIntoAttrs (rec {
|
2021-04-22 02:08:21 +00:00
|
|
|
vim_empty_config = vimUtils.vimrcFile { beforePlugins = ""; customRC = ""; };
|
|
|
|
|
2021-05-28 09:39:13 +00:00
|
|
|
### vim tests
|
|
|
|
##################
|
2021-04-22 02:08:21 +00:00
|
|
|
|
2022-12-17 10:02:37 +00:00
|
|
|
test_vim_with_vim_nix_using_plug = vim-full.customize {
|
2021-04-22 02:08:21 +00:00
|
|
|
name = "vim-with-vim-addon-nix-using-plug";
|
|
|
|
vimrcConfig.plug.plugins = with vimPlugins; [ vim-nix ];
|
|
|
|
};
|
|
|
|
|
2022-12-17 10:02:37 +00:00
|
|
|
test_vim_with_vim_nix = vim-full.customize {
|
2021-04-22 02:08:21 +00:00
|
|
|
name = "vim-with-vim-addon-nix";
|
|
|
|
vimrcConfig.packages.myVimPackage.start = with vimPlugins; [ vim-nix ];
|
|
|
|
};
|
2021-06-28 23:13:55 +00:00
|
|
|
})
|