lib/{neovim,vim}-plugin: remove redundant parens

This commit is contained in:
Matt Sturgeon 2024-12-18 20:12:01 +00:00
parent 6019ce784c
commit f1addaaddf
No known key found for this signature in database
GPG key ID: 4F91844CED1A8299
2 changed files with 11 additions and 11 deletions

View file

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