summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorChristian Cunningham <cc@localhost>2024-06-20 14:08:51 -0700
committerChristian Cunningham <cc@localhost>2024-06-20 14:08:51 -0700
commita4262653de913bdf3397449eaa2c4c9e982e7183 (patch)
tree2aa7b83b5de1d759581193233448a9ae1b49779a
parent3fa626afa31f374618a65c13847154ba3486125d (diff)
Treesitter Modes
-rw-r--r--elchemy-personal.el2
-rw-r--r--elchemy-user.el18
2 files changed, 20 insertions, 0 deletions
diff --git a/elchemy-personal.el b/elchemy-personal.el
index 25cbba1..a945041 100644
--- a/elchemy-personal.el
+++ b/elchemy-personal.el
@@ -12,6 +12,8 @@
(put 'downcase-region 'disabled nil)
(add-to-list 'major-mode-remap-alist '(python-mode . python-ts-mode))
+(add-to-list 'major-mode-remap-alist '(rust-mode . rust-ts-mode))
+(add-to-list 'major-mode-remap-alist '(toml-mode . toml-ts-mode))
(require 'eglot)
(define-key eglot-mode-map (kbd "C-c l r") 'eglot-rename)
diff --git a/elchemy-user.el b/elchemy-user.el
index e3ba380..1d86114 100644
--- a/elchemy-user.el
+++ b/elchemy-user.el
@@ -103,4 +103,22 @@
("NO" . +org-todo-cancel)
("KILL" . +org-todo-cancel)))
+(setq treesit-language-source-alist
+ '((bash "https://github.com/tree-sitter/tree-sitter-bash")
+ (cmake "https://github.com/uyha/tree-sitter-cmake")
+ (css "https://github.com/tree-sitter/tree-sitter-css")
+ (elisp "https://github.com/Wilfred/tree-sitter-elisp")
+ (go "https://github.com/tree-sitter/tree-sitter-go")
+ (html "https://github.com/tree-sitter/tree-sitter-html")
+ (javascript "https://github.com/tree-sitter/tree-sitter-javascript" "master" "src")
+ (json "https://github.com/tree-sitter/tree-sitter-json")
+ (make "https://github.com/alemuller/tree-sitter-make")
+ (markdown "https://github.com/ikatyang/tree-sitter-markdown")
+ (python "https://github.com/tree-sitter/tree-sitter-python")
+ (rust "https://github.com/tree-sitter/tree-sitter-rust")
+ (toml "https://github.com/tree-sitter/tree-sitter-toml")
+ (tsx "https://github.com/tree-sitter/tree-sitter-typescript" "master" "tsx/src")
+ (typescript "https://github.com/tree-sitter/tree-sitter-typescript" "master" "typescript/src")
+ (yaml "https://github.com/ikatyang/tree-sitter-yaml")))
+
(provide 'elchemy-user)