plugins: normalise null plugin-defaults

Replaced all instances of `"null"` with `null`, when passing
plugin-defaults to `defaultNullOpts` functions.
This commit is contained in:
Matt Sturgeon 2024-06-02 02:58:20 +01:00
parent e58380adcd
commit d136c08f3a
No known key found for this signature in database
GPG key ID: 4F91844CED1A8299
17 changed files with 69 additions and 55 deletions

View file

@ -9,7 +9,14 @@ with lib;
let
cfg = config.plugins.diffview;
mkWinConfig =
type: width: height: position: with helpers.defaultNullOpts; {
{
type ? null,
width ? null,
height ? null,
position ? null,
}:
with helpers.defaultNullOpts;
{
type =
mkEnum
[
@ -294,7 +301,11 @@ in
${commonDesc}
'';
};
winConfig = mkWinConfig "split" 35 "" "left";
winConfig = mkWinConfig {
type = "split";
width = 35;
position = "left";
};
};
fileHistoryPanel = {
logOptions =
@ -427,11 +438,15 @@ in
multiFile = logOptions;
};
};
winConfig = mkWinConfig "split" "" 16 "bottom";
winConfig = mkWinConfig {
type = "split";
height = 16;
position = "bottom";
};
};
commitLogPanel = {
winConfig = mkWinConfig "float" "" "" "";
winConfig = mkWinConfig { type = "float"; };
};
defaultArgs =