From 87543ab4077c0fbbcd8087b0e377d94f6dfa532e Mon Sep 17 00:00:00 2001 From: Frost-Phoenix <67cyril6767@gmail.com> Date: Mon, 6 Nov 2023 15:53:03 +0100 Subject: [PATCH] change bat config --- modules/home/bat/default.nix | 21 +++++++++++++++------ 1 file changed, 15 insertions(+), 6 deletions(-) diff --git a/modules/home/bat/default.nix b/modules/home/bat/default.nix index 46ead86..6c9a817 100644 --- a/modules/home/bat/default.nix +++ b/modules/home/bat/default.nix @@ -1,10 +1,19 @@ { config, pkgs, ... }: +let catppuccin-bat = { + url = "github:catppuccin/bat"; + flake = false; +}; +in { programs.bat = { - enable = true; - config = { - theme = "Dracula"; - italic-text = "always"; - }; - }; + enable = true; + config = { + pager = "less -FR"; + theme = "Catppuccin-mocha"; + }; + themes = { + # https://raw.githubusercontent.com/catppuccin/bat/main/Catppuccin-mocha.tmTheme + Catppuccin-mocha = builtins.readFile "${catppuccin-bat}/Catppuccin-mocha.tmTheme"; + }; + }; } \ No newline at end of file