diff --git a/emacs/.emacs.d/config/init-ide.el b/emacs/.emacs.d/config/init-ide.el index 03b9328..768ac5e 100644 --- a/emacs/.emacs.d/config/init-ide.el +++ b/emacs/.emacs.d/config/init-ide.el @@ -70,4 +70,15 @@ :general ("C-c f" #'apheleia-format-buffer)) +;; Tree-sitter is a C framework for generating ASTs +;; This emacs plugin provides nicer syntax highlighting for supported modes +(use-package tree-sitter + :defer 1 + :config + (global-tree-sitter-mode) + (add-hook 'tree-sitter-after-on-hook #'tree-sitter-hl-mode)) + +(use-package tree-sitter-langs + :defer 1) + (provide 'init-ide)