From a4262653de913bdf3397449eaa2c4c9e982e7183 Mon Sep 17 00:00:00 2001 From: Christian Cunningham Date: Thu, 20 Jun 2024 14:08:51 -0700 Subject: Treesitter Modes --- elchemy-personal.el | 2 ++ elchemy-user.el | 18 ++++++++++++++++++ 2 files changed, 20 insertions(+) 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) -- cgit v1.2.1