1
Fork 0
mirror of https://github.com/RGBCube/ncc synced 2025-07-30 11:37:44 +00:00

Add catppuccin theme for Bat

This commit is contained in:
RGBCube 2023-05-24 21:00:33 +03:00
parent 28f0150cd1
commit 7b18ac23c7
No known key found for this signature in database

View file

@ -1,4 +1,4 @@
{ lib, pkgs, systemPackages, homeConfiguration, ... }: lib.recursiveUpdate { lib, pkgs, systemPackages, homeConfiguration, enabled, ... }: lib.recursiveUpdate
(with pkgs; systemPackages [ (with pkgs; systemPackages [
bat bat
@ -9,4 +9,15 @@
PAGER = "\"bat --plain\""; PAGER = "\"bat --plain\"";
MANPAGER = "\"sh -c 'col --spaces --no-backspaces | bat --plain --language man'\""; MANPAGER = "\"sh -c 'col --spaces --no-backspaces | bat --plain --language man'\"";
}; };
programs.bat = enabled {
config.theme = "catppuccin";
themes.catppuccin = builtins.readFile (pkgs.fetchFromGitHub {
owner = "catppuccin";
repo = "bat";
rev = "ba4d16880d63e656acced2b7d4e034e4a93f74b1";
sha256 = "sha256-6WVKQErGdaqb++oaXnY3i6/GuH2FhTgK0v4TN4Y0Wbw=";
} + "/Catppuccin-mocha.tmTheme");
};
}) })