Skip to content

Commit 336ba15

Browse files
committed
plugins/overseer: fix strategy option
Actually supports a table to customize the strategy.
1 parent 9e81cb7 commit 336ba15

File tree

2 files changed

+22
-3
lines changed

2 files changed

+22
-3
lines changed

plugins/by-name/overseer/default.nix

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -14,9 +14,11 @@ lib.nixvim.neovim-plugin.mkNeovimPlugin {
1414
maintainers = [ lib.maintainers.khaneliman ];
1515

1616
settingsOptions = {
17-
strategy = defaultNullOpts.mkStr "terminal" ''
18-
Default task strategy.
19-
'';
17+
strategy =
18+
defaultNullOpts.mkNullableWithRaw (with types; either str (attrsOf anything)) "terminal"
19+
''
20+
Default task strategy.
21+
'';
2022

2123
templates = defaultNullOpts.mkListOf types.str [ "builtin" ] ''
2224
Template modules to load.

tests/test-sources/plugins/by-name/overseer/default.nix

Lines changed: 17 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -174,4 +174,21 @@
174174
};
175175
};
176176
};
177+
178+
example = {
179+
plugins.overseer = {
180+
enable = true;
181+
182+
settings = {
183+
strategy = {
184+
__unkeyed-1 = "toggleterm";
185+
use_shell = false;
186+
close_on_exit = false;
187+
quit_on_exit = "never";
188+
open_on_start = true;
189+
hidden = false;
190+
};
191+
};
192+
};
193+
};
177194
}

0 commit comments

Comments
 (0)