mirror of
https://codeberg.org/andyscott/dotfiles.git
synced 2024-11-09 14:00:47 -05:00
Replace tree-sitter with treesit-auto for emacs 29+
This commit is contained in:
parent
f55d6970db
commit
fb8a86f052
1 changed files with 11 additions and 5 deletions
|
@ -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"))
|
||||||
|
|
Loading…
Reference in a new issue