aboutsummaryrefslogtreecommitdiffstats
path: root/modules/tools/viewer/bat
diff options
context:
space:
mode:
Diffstat (limited to 'modules/tools/viewer/bat')
-rw-r--r--modules/tools/viewer/bat/default.nix10
-rw-r--r--modules/tools/viewer/bat/theme.mustache.tmTheme (renamed from modules/tools/viewer/bat/theme.tmTheme.mustache)0
2 files changed, 7 insertions, 3 deletions
diff --git a/modules/tools/viewer/bat/default.nix b/modules/tools/viewer/bat/default.nix
index 73bdefd..ec68eb7 100644
--- a/modules/tools/viewer/bat/default.nix
+++ b/modules/tools/viewer/bat/default.nix
@@ -7,12 +7,16 @@
config = lib.mkIf config.tools.viewer.bat.enable {
programs.bat.enable = true;
- programs.bat.config.theme = "custom-theme";
- shell.alias."cbat" = "${pkgs.bat}/bin/bat -pp";
+ programs.bat.config = {
+ tabs = "4";
+ theme = "custom-theme";
+ };
+ shell.alias."bc" = "${pkgs.bat}/bin/bat -pp";
+ shell.alias."bp" = "${pkgs.bat}/bin/bat --paging always";
home.sessionVariables."PAGER" = "${pkgs.bat}/bin/bat --paging always";
xdg.configFile."bat/themes/custom-theme.tmTheme".source
= config.scheme {
- template = builtins.readFile ./theme.tmTheme.mustache;
+ template = builtins.readFile ./theme.mustache.tmTheme;
};
};
}
diff --git a/modules/tools/viewer/bat/theme.tmTheme.mustache b/modules/tools/viewer/bat/theme.mustache.tmTheme
index 844b80d..844b80d 100644
--- a/modules/tools/viewer/bat/theme.tmTheme.mustache
+++ b/modules/tools/viewer/bat/theme.mustache.tmTheme