diff options
author | Thomas Voss <thomas.voss@humanwave.nl> | 2025-08-29 10:17:13 +0200 |
---|---|---|
committer | Thomas Voss <thomas.voss@humanwave.nl> | 2025-08-29 10:17:13 +0200 |
commit | 43e7f3b1acbf6870ce2b62bef3e34015d2f3a9c6 (patch) | |
tree | 11bf3c17e9d01b59e3688cb98be75ba9acffb76e /.config/emacs | |
parent | 0ba3388592356de9b4dfd55b3d5775cbe136f6de (diff) |
emacs: Add Tree-Sitter support for JSON
Diffstat (limited to '.config/emacs')
-rw-r--r-- | .config/emacs/modules/mm-treesit.el | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/.config/emacs/modules/mm-treesit.el b/.config/emacs/modules/mm-treesit.el index 1d4defa..bd146ce 100644 --- a/.config/emacs/modules/mm-treesit.el +++ b/.config/emacs/modules/mm-treesit.el @@ -35,6 +35,8 @@ "https://github.com/tree-sitter/tree-sitter-java") (javascript "https://github.com/tree-sitter/tree-sitter-javascript") + (json + "https://github.com/tree-sitter/tree-sitter-json") (markdown "https://github.com/tree-sitter-grammars/tree-sitter-markdown" "split_parser" "tree-sitter-markdown/src") @@ -116,6 +118,7 @@ The parsers are taken from `treesit-language-source-alist'." (defvar mm-treesit-language-file-name-alist '((go . "\\.go\\'") (gomod . "/go\\.mod\\'") + (json . "\\.json\\'") (tsx . "\\.tsx\\'") (typescript . "\\.ts\\'")) "Alist mapping languages to their associated file-names. @@ -219,4 +222,4 @@ back to regular `expreg-expand'." :commands (mm-expreg-expand mm-expreg-expand-dwim) :bind ("M-SPC" . mm-expreg-expand-dwim)) -(provide 'mm-treesit)
\ No newline at end of file +(provide 'mm-treesit) |