From 165cde749fc899d4c86eb6de97d3b7c4373eb7b3 Mon Sep 17 00:00:00 2001 From: Arpit Chakladar <54011232+arpitchakladar@users.noreply.github.com> Date: Wed, 25 Sep 2024 00:17:41 +0530 Subject: Using more descriptive option names. --- modules/tools/viewer/bat/default.nix | 6 +- modules/tools/viewer/bat/theme.nix | 214 +++++++++++++++++------------------ modules/tools/viewer/default.nix | 2 +- 3 files changed, 111 insertions(+), 111 deletions(-) (limited to 'modules/tools/viewer') diff --git a/modules/tools/viewer/bat/default.nix b/modules/tools/viewer/bat/default.nix index cc01f82..915b4b2 100644 --- a/modules/tools/viewer/bat/default.nix +++ b/modules/tools/viewer/bat/default.nix @@ -1,11 +1,11 @@ { config, lib, ... }: { - options = { - bat.enable = lib.mkEnableOption "Enables bat."; + options.tools.viewer.bat = { + enable = lib.mkEnableOption "Enables bat."; }; - config = lib.mkIf config.bat.enable { + config = lib.mkIf config.tools.viewer.bat.enable { programs.bat.enable = true; programs.bat.config.theme = "customTheme"; xdg.configFile."bat/themes/customTheme.tmTheme".text diff --git a/modules/tools/viewer/bat/theme.nix b/modules/tools/viewer/bat/theme.nix index e345ee4..dc22ceb 100644 --- a/modules/tools/viewer/bat/theme.nix +++ b/modules/tools/viewer/bat/theme.nix @@ -5,120 +5,120 @@ with config.scheme.withHashtag; - name - customTheme - settings - - - - settings - - background - #0F1419 - foreground - #E6E1CF - caret - #F3F4F5 - invisibles - #3E4B59 - lineHighlight - #272D38 - selection - #3E4B59 - - - - - - scope - comment - settings - - foreground - #BFBDB6 - - - - - scope - string - settings - - foreground - #FFB454 - - + name + customTheme + settings + + + + settings + + background + ${base00} + foreground + ${base05} + caret + ${base07} + invisibles + ${base03} + lineHighlight + ${base02} + selection + ${base03} + + + + + + scope + comment + settings + + foreground + ${base04} + + + + + scope + string + settings + + foreground + ${base0A} + + - - scope - constant.numeric - settings - - foreground - #FF8F40 - - + + scope + constant.numeric + settings + + foreground + ${base09} + + - - scope - variable - settings - - foreground - #F07178 - - + + scope + variable + settings + + foreground + ${base08} + + - - scope - keyword - settings - - foreground - #59C2FF - - + + scope + keyword + settings + + foreground + ${base0D} + + - - scope - support.function - settings - - foreground - #D2A6FF - - + + scope + support.function + settings + + foreground + ${base0E} + + - - scope - constant.language - settings - - foreground - #B8CC52 - - + + scope + constant.language + settings + + foreground + ${base0B} + + - - scope - entity.name.tag - settings - - foreground - #95E6CB - - + + scope + entity.name.tag + settings + + foreground + ${base0C} + + - - scope - invalid - settings - - foreground - #E6B673 - - - + + scope + invalid + settings + + foreground + ${base0F} + + + '' diff --git a/modules/tools/viewer/default.nix b/modules/tools/viewer/default.nix index dde782b..7784a99 100644 --- a/modules/tools/viewer/default.nix +++ b/modules/tools/viewer/default.nix @@ -1,4 +1,4 @@ -{ lib, config, ... }: +{ ... }: { imports = [ -- cgit v1.2.3