mirror of
https://github.com/nix-community/nixvim.git
synced 2025-08-17 07:51:27 +02:00
perform some statix linting and fixes
This commit is contained in:
parent
eee375e97e
commit
efdcbe225f
57 changed files with 196 additions and 221 deletions
|
@ -71,15 +71,15 @@ in {
|
|||
[
|
||||
cfg.package
|
||||
]
|
||||
++ optional (!isNull cfg.theme) vim-airline-themes;
|
||||
++ optional (cfg.theme != null) vim-airline-themes;
|
||||
globals =
|
||||
{
|
||||
airline.extensions = cfg.extensions;
|
||||
|
||||
airline_statusline_ontop = mkIf cfg.onTop 1;
|
||||
airline_powerline_fonts = mkIf (cfg.powerline) 1;
|
||||
airline_powerline_fonts = mkIf cfg.powerline 1;
|
||||
|
||||
airline_theme = mkIf (!isNull cfg.theme) cfg.theme;
|
||||
airline_theme = mkIf (cfg.theme != null) cfg.theme;
|
||||
}
|
||||
// sections;
|
||||
};
|
||||
|
|
|
@ -214,18 +214,16 @@ in {
|
|||
inherit icons_enabled icon separator color padding;
|
||||
}
|
||||
extraConfig;
|
||||
processSections = sections: mapAttrs (_: mapNullable (map processComponent)) sections;
|
||||
processSections = mapAttrs (_: mapNullable (map processComponent));
|
||||
setupOptions = {
|
||||
options = {
|
||||
inherit (cfg) theme globalstatus refresh extensions;
|
||||
icons_enabled = cfg.iconsEnabled;
|
||||
theme = cfg.theme;
|
||||
section_separators = cfg.sectionSeparators;
|
||||
component_separators = cfg.componentSeparators;
|
||||
disabled_filetypes = cfg.disabledFiletypes;
|
||||
ignore_focus = cfg.ignoreFocus;
|
||||
always_divide_middle = cfg.alwaysDivideMiddle;
|
||||
globalstatus = cfg.globalstatus;
|
||||
refresh = cfg.refresh;
|
||||
};
|
||||
|
||||
sections = mapNullable processSections cfg.sections;
|
||||
|
@ -233,7 +231,6 @@ in {
|
|||
tabline = mapNullable processSections cfg.tabline;
|
||||
winbar = mapNullable processSections cfg.winbar;
|
||||
inactive_winbar = mapNullable processSections cfg.inactiveWinbar;
|
||||
extensions = cfg.extensions;
|
||||
};
|
||||
in
|
||||
mkIf cfg.enable {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue