plugins/harpoon: add extraOptions option (#281)

This commit is contained in:
Gaétan Lepage 2023-03-21 22:19:07 +01:00 committed by GitHub
parent 961da92d2c
commit 89f54be73a
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -20,7 +20,9 @@ with lib; let
};
};
in {
options.plugins.harpoon = {
options.plugins.harpoon =
helpers.extraOptionsOptions
// {
enable = mkEnableOption "harpoon";
package = helpers.mkPackageOption "harpoon" pkgs.vimPlugins.harpoon;
@ -158,7 +160,8 @@ in {
)
cfg.projects;
options = {
options =
{
global_settings = {
save_on_toggle = cfg.saveOnToggle;
save_on_change = cfg.saveOnChange;
@ -175,7 +178,8 @@ in {
height = cfg.menu.height;
borderchars = cfg.menu.borderChars;
};
};
}
// cfg.extraOptions;
in
mkIf cfg.enable {
extraPlugins = [cfg.package];