diff options
| author | 2025-10-27 10:57:07 +0200 | |
|---|---|---|
| committer | 2025-10-27 10:57:07 +0200 | |
| commit | 5f71f89548dd8f533d16a18f9fa63c131ecd6854 (patch) | |
| tree | 8650d0851ae8414a10dcda47a9986742f9017d06 | |
| parent | emacs: Make sure we use the specified treesit library (diff) | |
| download | dotfiles-5f71f89548dd8f533d16a18f9fa63c131ecd6854.tar.gz dotfiles-5f71f89548dd8f533d16a18f9fa63c131ecd6854.tar.xz dotfiles-5f71f89548dd8f533d16a18f9fa63c131ecd6854.zip | |
emacs: replace lua-mode with lua-ts-mode
| -rw-r--r-- | emacs/.config/emacs/arkta/arkta-progmodes.el | 14 | ||||
| -rw-r--r-- | emacs/.config/emacs/arkta/arkta-treesit.el | 6 | ||||
| -rw-r--r-- | emacs/.config/emacs/init.el | 1 |
3 files changed, 14 insertions, 7 deletions
diff --git a/emacs/.config/emacs/arkta/arkta-progmodes.el b/emacs/.config/emacs/arkta/arkta-progmodes.el index c58ee93..8fa7624 100644 --- a/emacs/.config/emacs/arkta/arkta-progmodes.el +++ b/emacs/.config/emacs/arkta/arkta-progmodes.el | |||
| @@ -147,11 +147,11 @@ | |||
| 147 | :straight '(lisp-mode :type built-in) | 147 | :straight '(lisp-mode :type built-in) |
| 148 | :mode "\\.lisp\\'") | 148 | :mode "\\.lisp\\'") |
| 149 | 149 | ||
| 150 | (use-package lua-mode | 150 | (use-package lua-ts-mode |
| 151 | :straight t | 151 | :straight '(lua-ts-mode :type built-in) |
| 152 | :custom | 152 | :after treesit |
| 153 | (lua-indent-level standard-indent) | 153 | :mode ("\\.lua\\'" "\\.rockspec\\'") |
| 154 | :mode ("\\.lua\\'" "\\.rockspec\\'")) | 154 | :custom (lua-ts-indent-offset standard-offset)) |
| 155 | 155 | ||
| 156 | (use-package make-mode | 156 | (use-package make-mode |
| 157 | :straight '(make-mode :type built-in) | 157 | :straight '(make-mode :type built-in) |
| @@ -207,8 +207,8 @@ | |||
| 207 | :mode "\\.php\\'") | 207 | :mode "\\.php\\'") |
| 208 | 208 | ||
| 209 | (use-package pico8-mode | 209 | (use-package pico8-mode |
| 210 | :straight '(pico8-mode :host github | 210 | ;; NOTE: This uses lua-mode instead of lua-ts-mode under the hood |
| 211 | :repo "Kaali/pico8-mode") | 211 | :straight '(pico8-mode :host github :repo "Kaali/pico8-mode") |
| 212 | :mode "\\.p8\\'") | 212 | :mode "\\.p8\\'") |
| 213 | 213 | ||
| 214 | (use-package proof-general | 214 | (use-package proof-general |
diff --git a/emacs/.config/emacs/arkta/arkta-treesit.el b/emacs/.config/emacs/arkta/arkta-treesit.el index 6f867df..2a33d8f 100644 --- a/emacs/.config/emacs/arkta/arkta-treesit.el +++ b/emacs/.config/emacs/arkta/arkta-treesit.el | |||
| @@ -153,6 +153,12 @@ | |||
| 153 | (14 "0.3.8") | 153 | (14 "0.3.8") |
| 154 | (13 "0.2.11"))) | 154 | (13 "0.2.11"))) |
| 155 | 155 | ||
| 156 | (lua "https://github.com/tree-sitter-grammars/tree-sitter-lua" | ||
| 157 | ,(arkta/treesit-cond | ||
| 158 | (15 "v0.4.0") | ||
| 159 | (14 "v0.3.0") | ||
| 160 | (13 "v0.0.15"))) | ||
| 161 | |||
| 156 | (python "https://github.com/tree-sitter/tree-sitter-python.git" | 162 | (python "https://github.com/tree-sitter/tree-sitter-python.git" |
| 157 | ,(arkta/treesit-cond | 163 | ,(arkta/treesit-cond |
| 158 | (15 "v0.25.0") | 164 | (15 "v0.25.0") |
diff --git a/emacs/.config/emacs/init.el b/emacs/.config/emacs/init.el index cb865ac..18a095a 100644 --- a/emacs/.config/emacs/init.el +++ b/emacs/.config/emacs/init.el | |||
| @@ -65,6 +65,7 @@ | |||
| 65 | (java-mode . java-ts-mode) | 65 | (java-mode . java-ts-mode) |
| 66 | (js-mode . js-ts-mode) | 66 | (js-mode . js-ts-mode) |
| 67 | (json-mode . json-ts-mode) | 67 | (json-mode . json-ts-mode) |
| 68 | (lua-mode . lua-ts-mode) | ||
| 68 | (python-mode . python-ts-mode) | 69 | (python-mode . python-ts-mode) |
| 69 | (ruby-mode . ruby-ts-mode) | 70 | (ruby-mode . ruby-ts-mode) |
| 70 | (rust-mode . rust-ts-mode) | 71 | (rust-mode . rust-ts-mode) |