perform some statix linting and fixes

This commit is contained in:
Tanish2002 2023-05-22 15:45:47 +05:30 committed by Gaétan Lepage
parent eee375e97e
commit efdcbe225f
57 changed files with 196 additions and 221 deletions

View file

@ -30,7 +30,7 @@ in {
default = null;
};
toggler = mkOption {
type = types.nullOr (types.submodule ({...}: {
type = types.nullOr (types.submodule (_: {
options = {
line = mkOption {
type = types.str;
@ -48,7 +48,7 @@ in {
default = null;
};
opleader = mkOption {
type = types.nullOr (types.submodule ({...}: {
type = types.nullOr (types.submodule (_: {
options = {
line = mkOption {
type = types.str;
@ -66,7 +66,7 @@ in {
default = null;
};
mappings = mkOption {
type = types.nullOr (types.submodule ({...}: {
type = types.nullOr (types.submodule (_: {
options = {
basic = mkOption {
type = types.bool;
@ -93,12 +93,7 @@ in {
config = let
setupOptions = {
padding = cfg.padding;
sticky = cfg.sticky;
ignore = cfg.ignore;
toggler = cfg.toggler;
opleader = cfg.opleader;
mappings = cfg.mappings;
inherit (cfg) padding sticky ignore toggler opleader mappings;
};
in
mkIf cfg.enable {