From 7761267bb4052abd294c12127b4c262c1549ce8f Mon Sep 17 00:00:00 2001 From: Tom Alexander Date: Sat, 27 May 2023 00:44:26 -0400 Subject: [PATCH] Set the treesitter highlighting detail level to the max. --- ansible/roles/emacs/files/util-tree-sitter.el | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/ansible/roles/emacs/files/util-tree-sitter.el b/ansible/roles/emacs/files/util-tree-sitter.el index 34e27b5..39b89a2 100644 --- a/ansible/roles/emacs/files/util-tree-sitter.el +++ b/ansible/roles/emacs/files/util-tree-sitter.el @@ -3,4 +3,11 @@ (rust "https://github.com/tree-sitter/tree-sitter-rust") )) +;; Default to the max level of detail in treesitter highlighting. This +;; can be overridden in each language's use-package call with: +;; +;; :custom +;; (treesit-font-lock-level 3) +(setq treesit-font-lock-level 4) + (provide 'util-tree-sitter)