diff options
author | mattkae <mattkae@protonmail.com> | 2022-11-30 20:00:09 -0500 |
---|---|---|
committer | mattkae <mattkae@protonmail.com> | 2022-11-30 20:00:09 -0500 |
commit | e9f5b484356ef3d91749324252833db9977e7bd5 (patch) | |
tree | 295b785a42f9268dfc2d8aa5c4b3ad16957acac6 | |
parent | 7e35d96a0475c5850589a745438e0393af9c7675 (diff) |
Added tree-sitter
-rw-r--r-- | init.el | 2 | ||||
-rw-r--r-- | lisp/general.el | 16 |
2 files changed, 15 insertions, 3 deletions
@@ -65,7 +65,7 @@ '(org-agenda-files (list org-directory)) '(org-directory "~/Documents/org") '(package-selected-packages - '(eldoc-box company-quickhelp hl-todo python-mode drag-stuff org-bullets git-gutter-fringe git-gutter vterm-toggle vterm minimap neotree good-scroll counsel ## smartparens xref-js2 eglot json-mode markdown-mode emojify tern rtags cmake-ide cmake-mode tide auctex evil js2-highlight-vars ac-js2 js2-refactor js2-mode flycheck-irony company-irony all-the-icons req-package projectile irony org))) + '(tree-sitter-langs tree-sitter eldoc-box company-quickhelp hl-todo python-mode drag-stuff org-bullets git-gutter-fringe git-gutter vterm-toggle vterm minimap neotree good-scroll counsel ## smartparens xref-js2 eglot json-mode markdown-mode emojify tern rtags cmake-ide cmake-mode tide auctex evil js2-highlight-vars ac-js2 js2-refactor js2-mode flycheck-irony company-irony all-the-icons req-package projectile irony org))) ;;; init.el ends here (custom-set-faces diff --git a/lisp/general.el b/lisp/general.el index c5d71c4..c4a3d2f 100644 --- a/lisp/general.el +++ b/lisp/general.el @@ -261,8 +261,9 @@ (use-package eglot :custom (eglot-autoshutdown t) - :ensure t - :defer 3) + :ensure t) + +(set-face-underline 'eglot-highlight-symbol-face t) (use-package eldoc-box @@ -272,6 +273,17 @@ (add-hook 'emacs-lisp-mode-hook #'eldoc-box-hover-at-point-mode t) (add-hook 'eglot-managed-mode-hook #'eldoc-box-hover-at-point-mode t) +(use-package tree-sitter + :ensure t + :defer t) + +(use-package tree-sitter-langs + :ensure t + :defer t) + +(global-tree-sitter-mode) +(add-hook 'tree-sitter-after-on-hook #'tree-sitter-hl-mode) + ;; Vterm (require 'vterm) (require 'vterm-toggle) |