mirror of
https://github.com/nix-community/nixvim.git
synced 2025-06-21 08:35:43 +02:00
plugins: normalise null
plugin-defaults
Replaced all instances of `"null"` with `null`, when passing plugin-defaults to `defaultNullOpts` functions.
This commit is contained in:
parent
e58380adcd
commit
d136c08f3a
17 changed files with 69 additions and 55 deletions
|
@ -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 =
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue