terraform/hcl: improve options, fix terraform-cli error, add tofu-ls#1321
terraform/hcl: improve options, fix terraform-cli error, add tofu-ls#1321ppenguin wants to merge 11 commits intoNotAShelf:mainfrom
Conversation
…(free) as alternative option - Add tofu(ls) as free terraform alternative for terraform and hcl - Harmonize with other format/LSP implementation (also with conform) - Add/fix terraform formatter - Add `nomad fmt` as alternative hcl formatter Note: for (nomad) hcl tofu/terraform ls are ineffective (don't support e.g. jobspec schema) -> TODO: nomad-lsp (package and add, even though it seems abandoned it's probably better for nomad/hcl)
sjcobb2022
left a comment
There was a problem hiding this comment.
Looks good overall other than a few comments.
In addition, if a user enables both HCL and terraform modules, the lsp configs may overwrite each other.
I know you have tried to combat this by using mkDefault, but I think a more reasonable solution may be to "tag" the LSPs with something like: terraformls-hcl, or opentofu-tf, this way we can have the configs fully separate.
Alternatively, if the configs are identical other than the filetypes, then there is no need to use mkDefault as nix should merge the two arrays anyway.
bdfa328 to
02369b0
Compare
|
Would definitely want @NotAShelf and @horriblename to take a look at this impl |
|
@NotAShelf BTW, there seems to be a regression on This affected this issue as well since I did a rebase. |
|
Ah damn I forgot to test the config module before NDG's 2.6.0 refactor. I'll try to take a look today after work or tomorrow during the day. |
nomad fmtas alternative hcl formatterNote: for (nomad) hcl tofu/terraform ls are ineffective (don't support e.g. jobspec schema) -> TODO:
nomad-lsp(package and add, even though it seems abandoned it's probably better for nomad/hcl)Sanity Checking
nix fmt).#nix(default package).#maximal.#docs-html(manual, must build).#docs-linkcheck(optional, please build if adding links)x86_64-linuxaarch64-linuxx86_64-darwinaarch64-darwinAdd a 👍 reaction to pull requests you find important.