mirror of
https://github.com/nix-community/nixvim.git
synced 2025-06-20 16:15:43 +02:00
plugins/overseer: fix strategy option
Actually supports a table to customize the strategy.
This commit is contained in:
parent
9e81cb7391
commit
336ba155ff
2 changed files with 22 additions and 3 deletions
|
@ -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.
|
||||
|
|
|
@ -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;
|
||||
};
|
||||
};
|
||||
};
|
||||
};
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue