docs(emacs/treesit): better syntax highlighting with tree-sitter

This commit is contained in:
Lucien Cartier-Tilet 2024-10-05 20:08:54 +02:00
parent 697edb0cdb
commit edaef817b5
Signed by: phundrak
GPG Key ID: 347803E8073EACE0

View File

@ -20,7 +20,8 @@ variables to install grammars for different languages.
json-ts-mode rust-ts-mode tsx-ts-mode python-ts-mode json-ts-mode rust-ts-mode tsx-ts-mode python-ts-mode
css-ts-mode yaml-ts-mode) . lsp-deferred) css-ts-mode yaml-ts-mode) . lsp-deferred)
:init :init
(setq treesit-language-source-alist (setq treesit-font-lock-level 4
treesit-language-source-alist
'((astro "https://github.com/virchau13/tree-sitter-astro") '((astro "https://github.com/virchau13/tree-sitter-astro")
(bash "https://github.com/tree-sitter/tree-sitter-bash") (bash "https://github.com/tree-sitter/tree-sitter-bash")
(c "https://github.com/tree-sitter/tree-sitter-c") (c "https://github.com/tree-sitter/tree-sitter-c")