mirror of
https://github.com/nix-community/nixvim.git
synced 2025-06-21 16:39:00 +02:00
lib/{neovim,vim}-plugin: remove redundant parens
This commit is contained in:
parent
6019ce784c
commit
f1addaaddf
2 changed files with 11 additions and 11 deletions
|
@ -147,7 +147,7 @@
|
|||
];
|
||||
}
|
||||
|
||||
(lib.optionalAttrs (isColorscheme && (colorscheme != null)) {
|
||||
(lib.optionalAttrs (isColorscheme && colorscheme != null) {
|
||||
colorscheme = lib.mkDefault colorscheme;
|
||||
})
|
||||
|
||||
|
@ -159,7 +159,7 @@
|
|||
))
|
||||
]
|
||||
# Lua configuration code generation
|
||||
++ (lib.optionals hasLuaConfig [
|
||||
++ lib.optionals hasLuaConfig [
|
||||
|
||||
# Add the plugin setup code `require('foo').setup(...)` to the lua configuration
|
||||
(lib.optionalAttrs callSetup (lib.setAttrByPath loc { luaConfig.content = setupCode; }))
|
||||
|
@ -197,7 +197,7 @@
|
|||
];
|
||||
};
|
||||
})
|
||||
])
|
||||
]
|
||||
)
|
||||
);
|
||||
};
|
||||
|
@ -209,9 +209,9 @@
|
|||
in
|
||||
imports
|
||||
++ [ module ]
|
||||
++ (lib.optional deprecateExtraOptions (
|
||||
++ lib.optional deprecateExtraOptions (
|
||||
lib.mkRenamedOptionModule (loc ++ [ "extraOptions" ]) settingsPath
|
||||
))
|
||||
++ (lib.nixvim.mkSettingsRenamedOptionModules loc settingsPath optionsRenamedToSettings);
|
||||
)
|
||||
++ lib.nixvim.mkSettingsRenamedOptionModules loc settingsPath optionsRenamedToSettings;
|
||||
};
|
||||
}
|
||||
|
|
|
@ -61,7 +61,7 @@ rec {
|
|||
name
|
||||
];
|
||||
|
||||
createSettingsOption = (lib.isString globalPrefix) && (globalPrefix != "");
|
||||
createSettingsOption = lib.isString globalPrefix && globalPrefix != "";
|
||||
|
||||
settingsOption = lib.optionalAttrs createSettingsOption {
|
||||
settings = mkSettingsOption {
|
||||
|
@ -133,7 +133,7 @@ rec {
|
|||
];
|
||||
globals = lib.nixvim.applyPrefixToAttrs globalPrefix (cfg.settings or { });
|
||||
}
|
||||
(lib.optionalAttrs (isColorscheme && (colorscheme != null)) {
|
||||
(lib.optionalAttrs (isColorscheme && colorscheme != null) {
|
||||
colorscheme = lib.mkDefault colorscheme;
|
||||
})
|
||||
(lib.optionalAttrs (args ? extraConfig) (
|
||||
|
@ -152,9 +152,9 @@ rec {
|
|||
in
|
||||
imports
|
||||
++ [ module ]
|
||||
++ (lib.optional (deprecateExtraConfig && createSettingsOption) (
|
||||
++ lib.optional (deprecateExtraConfig && createSettingsOption) (
|
||||
lib.mkRenamedOptionModule (loc ++ [ "extraConfig" ]) settingsPath
|
||||
))
|
||||
++ (lib.nixvim.mkSettingsRenamedOptionModules loc settingsPath optionsRenamedToSettings);
|
||||
)
|
||||
++ lib.nixvim.mkSettingsRenamedOptionModules loc settingsPath optionsRenamedToSettings;
|
||||
};
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue