mirror of
https://github.com/doomemacs/doomemacs
synced 2025-08-27 14:23:43 -05:00
feat(web): add treesit support (for html/css)
This commit is contained in:
@@ -73,5 +73,10 @@ If set to `nil', disable all the above behaviors.")
|
||||
less-css-mode-local-vars-hook)
|
||||
:append #'lsp!))
|
||||
|
||||
(when (modulep! +tree-sitter)
|
||||
(add-hook 'css-mode-local-vars-hook #'tree-sitter! 'append))
|
||||
|
||||
(use-package! css-ts-mode
|
||||
:when (modulep! +tree-sitter)
|
||||
:when (fboundp 'css-ts-mode) ; 29.1+ only
|
||||
:defer t
|
||||
:init
|
||||
(set-tree-sitter! 'css-mode 'css-ts-mode 'css))
|
||||
|
@@ -167,7 +167,18 @@
|
||||
nxml-mode-local-vars-hook)
|
||||
:append #'lsp!))
|
||||
|
||||
(when (modulep! +tree-sitter)
|
||||
(add-hook! '(html-mode-local-vars-hook
|
||||
mhtml-mode-local-vars-hook)
|
||||
:append #'tree-sitter!))
|
||||
|
||||
(use-package! html-ts-mode
|
||||
:when (modulep! +tree-sitter)
|
||||
:when (fboundp 'html-ts-mode) ; 30.1+ only
|
||||
:defer t
|
||||
:init
|
||||
(set-tree-sitter! 'html-mode 'html-ts-mode 'html))
|
||||
|
||||
|
||||
(use-package! mhtml-ts-mode
|
||||
:when (modulep! +tree-sitter)
|
||||
:when (fboundp 'mhtml-ts-mode) ; 31+ only
|
||||
:defer t
|
||||
:init
|
||||
(set-tree-sitter! 'mhtml-mode 'mhtml-ts-mode 'html))
|
||||
|
Reference in New Issue
Block a user