Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Support for qml #2771

Closed
vvzen opened this issue Jun 14, 2022 · 1 comment · Fixed by #4842
Closed

Support for qml #2771

vvzen opened this issue Jun 14, 2022 · 1 comment · Fixed by #4842
Labels
A-tree-sitter Area: Tree-sitter C-enhancement Category: Improvements E-easy Call for participation: Experience needed to fix: Easy / not much E-help-wanted Call for participation: Extra attention is needed

Comments

@vvzen
Copy link

vvzen commented Jun 14, 2022

$ hx --health qml
Language 'qml' not found

As always, thanks for this awesome project. I truly mean it since it has changed the way I work! :D

It would be amazing if we had support for highlighting qml files inside Helix. QtQml (https://doc.qt.io/qt-6/qtqml-documents-topic.html) is a nice framework by Qt that allows for building UIs using (mostly) a declarative approach. The .qml files hosts the description of the UI, with a little bit of logic tied only to the UX/UI side of things.

Is this something that would be easy to add?
According to this: https://bugreports.qt.io/browse/QTBUG-68406, QtQml now offers a language server (qmlls)

I'd be happy to take a stab at it, in my free time, if that helps.
Thanks!

Valerio

@vvzen vvzen added the C-enhancement Category: Improvements label Jun 14, 2022
@the-mikedavis the-mikedavis added E-easy Call for participation: Experience needed to fix: Easy / not much E-help-wanted Call for participation: Extra attention is needed A-tree-sitter Area: Tree-sitter labels Jun 14, 2022
@the-mikedavis
Copy link
Member

The main thing for adding support is finding a good tree-sitter grammar if one exists (sometimes there isn't one and you'd need to write it yourself 😬)

For QML I see:

Of those, yuja's looks the most complete and it has some queries to get started with for highlights.

If you'd like, you can give this a try following https://docs.helix-editor.com/master/guides/adding_languages.html

alois31 added a commit to alois31/helix that referenced this issue Nov 21, 2022
the-mikedavis pushed a commit that referenced this issue Nov 23, 2022
herkhinah pushed a commit to herkhinah/helix that referenced this issue Dec 11, 2022
freqmod pushed a commit to freqmod/helix that referenced this issue Feb 8, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
A-tree-sitter Area: Tree-sitter C-enhancement Category: Improvements E-easy Call for participation: Experience needed to fix: Easy / not much E-help-wanted Call for participation: Extra attention is needed
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants