Skip to content

Commit

Permalink
plugins/overseer: fix strategy option
Browse files Browse the repository at this point in the history
Actually supports a table to customize the strategy.
  • Loading branch information
khaneliman committed Sep 15, 2024
1 parent 9e81cb7 commit 336ba15
Show file tree
Hide file tree
Showing 2 changed files with 22 additions and 3 deletions.
8 changes: 5 additions & 3 deletions plugins/by-name/overseer/default.nix
Original file line number Diff line number Diff line change
Expand Up @@ -14,9 +14,11 @@ lib.nixvim.neovim-plugin.mkNeovimPlugin {
maintainers = [ lib.maintainers.khaneliman ];

settingsOptions = {
strategy = defaultNullOpts.mkStr "terminal" ''
Default task strategy.
'';
strategy =
defaultNullOpts.mkNullableWithRaw (with types; either str (attrsOf anything)) "terminal"
''
Default task strategy.
'';

templates = defaultNullOpts.mkListOf types.str [ "builtin" ] ''
Template modules to load.
Expand Down
17 changes: 17 additions & 0 deletions tests/test-sources/plugins/by-name/overseer/default.nix
Original file line number Diff line number Diff line change
Expand Up @@ -174,4 +174,21 @@
};
};
};

example = {
plugins.overseer = {
enable = true;

settings = {
strategy = {
__unkeyed-1 = "toggleterm";
use_shell = false;
close_on_exit = false;
quit_on_exit = "never";
open_on_start = true;
hidden = false;
};
};
};
};
}

0 comments on commit 336ba15

Please sign in to comment.