mirror of
https://github.com/doomemacs/doomemacs
synced 2025-09-04 15:03:42 -05:00
feat(qt): add treesit (and lsp) support
This commit is contained in:
@@ -2,3 +2,13 @@
|
||||
|
||||
;;;###autoload
|
||||
(add-to-list 'auto-mode-alist '("\\.pr[io]\\'" . qt-pro-mode))
|
||||
|
||||
;;;###autoload
|
||||
(when (modulep! +tree-sitter)
|
||||
(set-tree-sitter! 'qml-mode 'qml-ts-mode
|
||||
'((qmljs :url "https://github.com/yuja/tree-sitter-qmljs"))))
|
||||
|
||||
;;;###autoload
|
||||
(when (modulep! +lsp)
|
||||
(add-hook 'qml-mode-local-vars-hook #'lsp! 'append)
|
||||
(add-hook 'qml-ts-mode-local-vars-hook #'lsp! 'append))
|
||||
|
Reference in New Issue
Block a user