From ca4683c8ced136004093e8c5a9469ca2f37bbc64 Mon Sep 17 00:00:00 2001 From: Przemek Kryger Date: Wed, 6 Sep 2023 15:56:42 +0100 Subject: [PATCH] Don't depend on lsp-mode for treesit --- modules/init-treesit.el | 8 +++----- 1 file changed, 3 insertions(+), 5 deletions(-) diff --git a/modules/init-treesit.el b/modules/init-treesit.el index 5e926858..0c6b7acb 100644 --- a/modules/init-treesit.el +++ b/modules/init-treesit.el @@ -5,10 +5,10 @@ (defun exordium--add-forward-ts-hook (mode) (when-let ((ts-hook (intern (concat (symbol-name mode) "-ts-mode-hook"))) (hook (intern (concat (symbol-name mode) "-mode-hook"))) - (_ (and (symbolp ts-hook) (symbolp hook)))) + ((and (symbolp ts-hook) (symbolp hook)))) (add-hook ts-hook - #'(lambda () - (run-hooks hook))))) + #'(lambda () + (run-hooks hook))))) (when exordium-treesit-modes-enable (unless (getenv "ci_tests") @@ -17,7 +17,6 @@ (message "Enabling treesit-auto and builtin treesit") (use-package treesit-auto :requires treesit - :after lsp-mode :config (setq treesit-auto-install 'prompt) (global-treesit-auto-mode)) @@ -25,7 +24,6 @@ (use-package treesit :requires treesit :ensure nil - :after lsp-mode :config (mapc #'exordium--add-forward-ts-hook '(