From 1385c31e2fe2c764422cfd9321e12776f7c17aa9 Mon Sep 17 00:00:00 2001 From: pupbrained Date: Fri, 4 Oct 2024 22:29:50 -0400 Subject: [PATCH] treesitter --- config.org | 29 ++++++++++++++++++++++++----- 1 file changed, 24 insertions(+), 5 deletions(-) diff --git a/config.org b/config.org index 714e22b..31576af 100644 --- a/config.org +++ b/config.org @@ -174,6 +174,21 @@ (evil-leader/set-key "bd" #'kill-this-buffer) (evil-leader/set-key "e" #'dirvish-side)) + (use-package catppuccin-theme + :ensure t + :demand t + :config + (load-theme 'catppuccin t)) + + (setq auto-save-default nil + make-backup-files nil) +#+end_src + +** LSP + +*** Eglot + +#+begin_src emacs-lisp (use-package eglot :hook (prog-mode . eglot-ensure) @@ -194,16 +209,20 @@ (eglot-format-buffer))) (add-hook 'before-save-hook #'my/eglot-format-buffer-on-save) +#+end_src +*** TreeSitter - (use-package catppuccin-theme +#+begin_src emacs-lisp + (use-package tree-sitter :ensure t - :demand t + :hook + (prog-mode . tree-sitter-hl-mode) :config - (load-theme 'catppuccin t)) + (global-tree-sitter-mode)) - (setq auto-save-default nil - make-backup-files nil) + (use-package tree-sitter-langs + :ensure t) #+end_src ** Rainbow Delimiters