nvf icon indicating copy to clipboard operation
nvf copied to clipboard

languages/qml: add QML support

Open TheSunCat opened this issue 10 months ago • 2 comments

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
  • 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)
  • Tested on platform(s)
    • [x] x86_64-linux
    • [ ] aarch64-linux
    • [ ] x86_64-darwin
    • [ ] aarch64-darwin

Add a :+1: reaction to pull requests you find important.

TheSunCat avatar Mar 01 '25 14:03 TheSunCat

:rocket: Live preview deployed from 03833118267ad32226b014b360692bdce9d6e082

View it here:

Debug Information

Triggered by: TheSunCat

HEAD at: feat-languages-qml

Reruns: 1315

github-actions[bot] avatar Mar 01 '25 14:03 github-actions[bot]

I feel like that did the wrong thing but I'll just trust github's web workflow.

TheSunCat avatar Apr 07 '25 21:04 TheSunCat

hey, any new on this ?

e-v-o-l-v-e avatar Jun 07 '25 20:06 e-v-o-l-v-e

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.

NotAShelf avatar Jun 09 '25 20:06 NotAShelf

@TheSunCat Are you still planning on doing this? If not I'll take it on.

poseidon-rises avatar Aug 12 '25 19:08 poseidon-rises

Thanks!

TheSunCat avatar Aug 25 '25 20:08 TheSunCat

✅ Preview has been deleted successfully!

github-actions[bot] avatar Aug 25 '25 20:08 github-actions[bot]