From 5af2fac4af93acfdc6fc1df9c191aac0b374b1b5 Mon Sep 17 00:00:00 2001 From: Evie Litherland-Smith Date: Mon, 23 Oct 2023 21:01:34 +0100 Subject: [PATCH] Add tree-sitter config file --- home/emacs/tree-sitter.nix | 48 ++++++++++++++++++++++++++++++++++++++ 1 file changed, 48 insertions(+) diff --git a/home/emacs/tree-sitter.nix b/home/emacs/tree-sitter.nix index 74e38e77..de949337 100644 --- a/home/emacs/tree-sitter.nix +++ b/home/emacs/tree-sitter.nix @@ -35,4 +35,52 @@ tree-sitter-yaml ])) ]; + xdg.configFile."tree-sitter/config.json".text = builtins.toJSON { + parser-directories = [ ]; + theme = { + "type.builtin" = { + color = 23; + bold = true; + }; + variable.parameter = { underline = true; }; + comment = { + color = 245; + italic = true; + }; + constructor = 136; + "string.special" = 30; + variable.builtin = { bold = true; }; + "constant.builtin" = { + bold = true; + color = 94; + }; + "function.builtin" = { + color = 26; + bold = true; + }; + function = 26; + attribute = { + color = 124; + italic = true; + }; + constant = 94; + punctuation.delimiter = 239; + type = 23; + operator = { + bold = true; + color = 239; + }; + punctuation.bracket = 239; + keyword = 56; + string = 28; + property = 124; + number = { + bold = true; + color = 94; + }; + embedded = null; + module = 136; + tag = 18; + }; + }; }