languages/qml: add QML support
This merge request adds support for the qmlls LSP and qmlformat formatter in nvf, toggleable with languages.qml options. The implementation is largely based off of the clang.nix (LSP) and svelte.nix (formatter) files, as I am still new-ish to the Nix language, but I think most of the code makes sense.
Note that qmlls requires passing the -E argument to have it read the QML2_IMPORT_PATH environment variable, which is required for the ability to import QML modules on NixOS (they are installed in the Nix store).
Sanity Checking
- [x] I have updated the changelog as per my changes
- [x] I have tested, and self-reviewed my code
- [x] My changes fit guidelines found in hacking nvf
- Style and consistency
- [x] I ran Alejandra to format my code (
nix fmt) - [x] My code conforms to the editorconfig configuration of the project
- [x] My changes are consistent with the rest of the codebase
- [x] I ran Alejandra to format my code (
- If new changes are particularly complex:
- [ ] My code includes comments in particularly complex areas
- [ ] I have added a section in the manual
- [ ] (For breaking changes) I have included a migration guide
- Package(s) built:
- [x]
.#nix(default package) - [x]
.#maximal - [x]
.#docs-html(manual, must build) - [ ]
.#docs-linkcheck(optional, please build if adding links)
- [x]
- Tested on platform(s)
- [x]
x86_64-linux - [ ]
aarch64-linux - [ ]
x86_64-darwin - [ ]
aarch64-darwin
- [x]
Add a :+1: reaction to pull requests you find important.
:rocket: Live preview deployed from 03833118267ad32226b014b360692bdce9d6e082
View it here:
Debug Information
Triggered by: TheSunCat
HEAD at: feat-languages-qml
Reruns: 1315
I feel like that did the wrong thing but I'll just trust github's web workflow.
hey, any new on this ?
This is not forgotten, we have a few internal refactor plans that is causing us to hold back incoming language module additions. Please see #913, this will need to be rebased after.
@TheSunCat Are you still planning on doing this? If not I'll take it on.
Thanks!
✅ Preview has been deleted successfully!