From edaef817b5b301aadb0767dfcf986f929b738d45 Mon Sep 17 00:00:00 2001 From: Lucien Cartier-Tilet Date: Sat, 5 Oct 2024 20:08:54 +0200 Subject: [PATCH] docs(emacs/treesit): better syntax highlighting with tree-sitter --- docs/emacs/packages/programming.org | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/docs/emacs/packages/programming.org b/docs/emacs/packages/programming.org index 7e1588a..4c08ab8 100644 --- a/docs/emacs/packages/programming.org +++ b/docs/emacs/packages/programming.org @@ -20,7 +20,8 @@ variables to install grammars for different languages. json-ts-mode rust-ts-mode tsx-ts-mode python-ts-mode css-ts-mode yaml-ts-mode) . lsp-deferred) :init - (setq treesit-language-source-alist + (setq treesit-font-lock-level 4 + treesit-language-source-alist '((astro "https://github.com/virchau13/tree-sitter-astro") (bash "https://github.com/tree-sitter/tree-sitter-bash") (c "https://github.com/tree-sitter/tree-sitter-c")