2022-12-04 10:18:38 +00:00
|
|
|
{ vimUtils, vim-full, writeText, vimPlugins
|
2024-05-26 19:08:40 +01:00
|
|
|
, lib
|
2021-05-28 22:44:43 +01:00
|
|
|
, pkgs
|
2021-04-21 11:55:05 +01:00
|
|
|
}:
|
|
|
|
let
|
2023-09-26 19:31:31 +01:00
|
|
|
inherit (vimUtils) buildVimPlugin;
|
2021-04-21 11:55:05 +01:00
|
|
|
|
|
|
|
packages.myVimPackage.start = with vimPlugins; [ vim-nix ];
|
2021-05-21 11:48:43 +01:00
|
|
|
|
2021-04-21 11:55:05 +01:00
|
|
|
in
|
2021-06-07 23:52:17 +01:00
|
|
|
pkgs.recurseIntoAttrs (rec {
|
2021-04-21 11:55:05 +01:00
|
|
|
vim_empty_config = vimUtils.vimrcFile { beforePlugins = ""; customRC = ""; };
|
|
|
|
|
2021-05-21 11:48:43 +01:00
|
|
|
### vim tests
|
2021-05-25 21:37:57 +01:00
|
|
|
##################
|
2021-04-21 11:55:05 +01:00
|
|
|
|
2022-12-04 10:18:38 +00:00
|
|
|
test_vim_with_vim_nix_using_plug = vim-full.customize {
|
2021-04-21 11:55:05 +01:00
|
|
|
name = "vim-with-vim-addon-nix-using-plug";
|
|
|
|
vimrcConfig.plug.plugins = with vimPlugins; [ vim-nix ];
|
|
|
|
};
|
|
|
|
|
2022-12-04 10:18:38 +00:00
|
|
|
test_vim_with_vim_nix = vim-full.customize {
|
2021-04-21 11:55:05 +01:00
|
|
|
name = "vim-with-vim-addon-nix";
|
|
|
|
vimrcConfig.packages.myVimPackage.start = with vimPlugins; [ vim-nix ];
|
|
|
|
};
|
2021-05-28 22:44:43 +01:00
|
|
|
})
|