summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--init.el2
-rw-r--r--lisp/general.el16
2 files changed, 15 insertions, 3 deletions
diff --git a/init.el b/init.el
index f2b3533..518a210 100644
--- a/init.el
+++ b/init.el
@@ -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)