mirror of
https://github.com/nix-community/nixvim.git
synced 2025-06-21 08:35:43 +02:00
plugins/harpoon: add extraOptions option (#281)
This commit is contained in:
parent
961da92d2c
commit
89f54be73a
1 changed files with 137 additions and 133 deletions
|
@ -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];
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue