From 3d669198e709be21dc8cefdf773e9f09889a46c0 Mon Sep 17 00:00:00 2001 From: Ivan Kirilov Dimitrov Date: Fri, 2 Aug 2024 10:17:24 +0200 Subject: [PATCH] typescript bat syntax --- home/modules/default.nix | 20 +++++++++++++++++++- 1 file changed, 19 insertions(+), 1 deletion(-) diff --git a/home/modules/default.nix b/home/modules/default.nix index 70523aa..f584f6d 100644 --- a/home/modules/default.nix +++ b/home/modules/default.nix @@ -79,7 +79,12 @@ toplevel@{ moduleWithSystem, ... }: { enable = true; themes = let - catppuccin = pkgs.fetchFromGitHub { owner = "catppuccin"; repo = "bat"; rev = "82e7ca555f805b53d2b377390e4ab38c20282e83"; sha256 = "sha256-/Ob9iCVyjJDBCXlss9KwFQTuxybmSSzYRBZxOT10PZg="; }; + catppuccin = pkgs.fetchFromGitHub { + owner = "catppuccin"; + repo = "bat"; + rev = "82e7ca555f805b53d2b377390e4ab38c20282e83"; + sha256 = "sha256-/Ob9iCVyjJDBCXlss9KwFQTuxybmSSzYRBZxOT10PZg="; + }; in { catppuccin-mocha = { src = catppuccin; file = "themes/Catppuccin Mocha.tmTheme"; }; @@ -87,6 +92,19 @@ toplevel@{ moduleWithSystem, ... }: { catppuccin-frappe = { src = catppuccin; file = "themes/Catppuccin Frappe.tmTheme"; }; catppuccin-latte = { src = catppuccin; file = "themes/Catppuccin Latte.tmTheme"; }; }; + syntaxes = + let + typescript = pkgs.fetchFromGitHub { + owner = "ivandimitrov8080"; + repo = "TypeScript.sublime-syntax"; + rev = "1bb4c27024379d560d19edac4121e3a5388a2d08"; + sha256 = "sha256-rW2ioNzmGl/3tvHL0vVzpcTnvJ3u0ZTGbaCmVdl0akY="; + }; + in + { + typescript = { src = typescript; file = "TypeScript.sublime-syntax"; }; + typescriptreact = { src = typescript; file = "TypeScriptReact.sublime-syntax"; }; + }; }; ssh.enable = true; gpg.enable = true;