feat(web): add treesit support (for html/css)

This commit is contained in:
Henrik Lissner
2025-08-27 17:38:40 +02:00
parent 6b203d74c9
commit 5bf132a80f
2 changed files with 22 additions and 6 deletions

View File

@@ -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))