Replace tree-sitter with treesit-auto for emacs 29+

This commit is contained in:
Andrew Scott 2023-07-09 03:10:43 -04:00
parent f55d6970db
commit fb8a86f052
Signed by: a
GPG key ID: 7CD5A5977E4931C1

View file

@ -605,12 +605,18 @@
:after zig-mode) :after zig-mode)
;; Syntax parsing/highlighting (use native tree-sitter on emacs 29+) ;; Syntax parsing/highlighting (use native tree-sitter on emacs 29+)
(use-package tree-sitter ;; (use-package tree-sitter
:config ;; :config
(global-tree-sitter-mode) ;; (global-tree-sitter-mode)
(add-hook 'tree-sitter-after-on-hook #'tree-sitter-hl-mode)) ;; (add-hook 'tree-sitter-after-on-hook #'tree-sitter-hl-mode))
(use-package tree-sitter-langs) ;; (use-package tree-sitter-langs)
;; emacs 29+
(use-package treesit-auto
:config
(setq treesit-auto-install 'prompt)
(global-treesit-auto-mode))
;; C/C++ ;; C/C++
(setq dap-lldb-debug-program '("/usr/bin/lldb-vscode")) (setq dap-lldb-debug-program '("/usr/bin/lldb-vscode"))