From a756951d4bccf89ca764964775053e4559538c44 Mon Sep 17 00:00:00 2001 From: Erwin Boskma Date: Thu, 5 Oct 2023 08:22:14 +0200 Subject: [PATCH] emacs: Add treesit-auto --- home-manager/modules/emacs/config.org | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/home-manager/modules/emacs/config.org b/home-manager/modules/emacs/config.org index 1d7a44c..fa1184d 100644 --- a/home-manager/modules/emacs/config.org +++ b/home-manager/modules/emacs/config.org @@ -916,6 +916,15 @@ Visualise git changes in the gutter, next to the line numbers :after tree-sitter) #+end_src +Automatically use the =-ts-mode= when it is available + +#+begin_src emacs-lisp + (use-package treesit-auto + :config + (setq treesit-auto-install 'prompt) + (global-treesit-auto-mode)) +#+end_src + *** lsp-mode [[https://emacs-lsp.github.io/lsp-mode][lsp-mode]] adds Language Server Protocol support to emacs.