about summary refs log tree commit diff
path: root/users/tazjin
diff options
context:
space:
mode:
authorVincent Ambo <tazjin@tvl.su>2023-09-12T14·07+0300
committerclbot <clbot@tvl.fyi>2023-09-12T15·07+0000
commit2b1eb01124aa4ee4821996f91af1d3d326365057 (patch)
tree2bcef162c4124f4c146436b938ca2e5b17ecba05 /users/tazjin
parent6e1ea80e5bb1689bcdce6caeea6d088b0354c103 (diff)
feat(tazjin/emacs): add a bunch of tree-sitter grammars r/6584
I want to experiment with the new tree-sitter modes in Emacs, maybe
they're good.

Change-Id: I706fc8a889fcfa61d0f11d50ecbc67a2899b5bbf
Reviewed-on: https://cl.tvl.fyi/c/depot/+/9307
Reviewed-by: tazjin <tazjin@tvl.su>
Autosubmit: tazjin <tazjin@tvl.su>
Tested-by: BuildkiteCI
Diffstat (limited to 'users/tazjin')
-rw-r--r--users/tazjin/emacs/default.nix17
1 files changed, 17 insertions, 0 deletions
diff --git a/users/tazjin/emacs/default.nix b/users/tazjin/emacs/default.nix
index 33dfa5cc115a..1ad77656ca3d 100644
--- a/users/tazjin/emacs/default.nix
+++ b/users/tazjin/emacs/default.nix
@@ -89,6 +89,23 @@ pkgs.makeOverridable
       zetteldeft
       zoxide
 
+      # tree-sitter grammars for various ts-modes
+      (treesit-grammars.with-grammars (g: with g; [
+        tree-sitter-bash
+        tree-sitter-c
+        tree-sitter-cmake
+        tree-sitter-cpp
+        tree-sitter-go
+        tree-sitter-java
+        tree-sitter-json
+        tree-sitter-latex
+        tree-sitter-nix
+        tree-sitter-python
+        tree-sitter-rust
+        tree-sitter-toml
+        tree-sitter-yaml
+      ]))
+
       # Wonky stuff
       (currentTelega epkgs)