plugins/overseer: fix strategy option

Actually supports a table to customize the strategy.
This commit is contained in:
Austin Horstman 2024-09-15 14:07:11 -05:00
parent 9e81cb7391
commit 336ba155ff
No known key found for this signature in database
2 changed files with 22 additions and 3 deletions

View file

@ -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.

View file

@ -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;
};
};
};
};
}