-
-
Notifications
You must be signed in to change notification settings - Fork 46
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
add language HCL #359
add language HCL #359
Conversation
Looks reasonable. Though, I will need you to format via Other than that, if there is a known formatter for HCL I can work on getting it added tomorrow. We will need null-ls (or none-ls) to support HCL for proper formatting. |
Thanks for looking into it so quickly...
Ah yes, different than While we're at it, is there a trick that I can (e.g. via |
779e267
to
38d5869
Compare
Looking at none-ls builtins, I see an formatter source for Terraform. This could be used to add formatter support via
Afraid there isn't a way to impurely override configuration per-project, but we do provide a formatter that will format the code for you with |
Terraform doesn't register hcl and doesn't offer good DX if manually set for editing e.g. nomad HCL files. Incl. reformat with alejandra
38d5869
to
5952e60
Compare
I finally got around to finish this one. In hindsight I might have gone a bit overboard with (unnecessary?) extensibility (inspired by the EDIT: spelling (noticed spelling "funture", I might be on to something :rofl ) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Sorry for the delay, GitHub never gave me any notifications about your comment.
Left a few comments, but nothing too big.
7489b91
to
4d4235e
Compare
Sorry for the delay in my review, I'm very busy with IRL stuff at the moment. We're currently at the final stretch for merging the next big release (see #355) and I've frozen the main branch to avoid merge conflicts. If you could rebase this around the |
0d9ea35
to
3479b8d
Compare
Thanks
Done (just pushed ther rebased one) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM, but there seems to be an issue with the merge. Please pulling v0.7
with a rebase. There is a conflict between main (which is pulled) and v0.7
which you are targeting.
Also, a changelog entry wouldn't go amiss :)
forgotten save typo (lsp <-> format)
3479b8d
to
4bb7d05
Compare
Ah, the good old rebase vs merge mess 😉 |
consolidate changelog entry
7091c8b
to
965da7d
Compare
All good, merging once CI passes. |
Terraform doesn't register hcl and doesn't offer good DX if manually set for editing e.g. nomad HCL files.
My first nvf contribution. Maybe somebody could show how to integrate a formatter as well. Other than that it's already an improvement for editing non-Terraform files (e.g.
nomad
), but it could be probably better. (I vaguely remember the vscode plugin offered some more features).