helpers/vim-plugin/mkVimPlugin: add a colorscheme argument and factor out logic

This commit is contained in:
Gaetan Lepage 2024-03-08 12:06:00 +01:00 committed by Gaétan Lepage
parent 3c9a4b67ae
commit 601010900b
2 changed files with 12 additions and 6 deletions

View file

@ -6,8 +6,8 @@
...
}:
helpers.vim-plugin.mkVimPlugin config {
namespace = "colorschemes";
name = "nord";
colorscheme = true;
originalName = "nord.nvim";
defaultPackage = pkgs.vimPlugins.nord-nvim;
globalPrefix = "nord_";
@ -61,8 +61,4 @@ helpers.vim-plugin.mkVimPlugin config {
disable_background = true;
italic = false;
};
extraConfig = cfg: {
colorscheme = "nord";
};
}