Skip to content

Commit

Permalink
languages hcl: use oss tooling for terraform
Browse files Browse the repository at this point in the history
  • Loading branch information
denbeigh2000 committed Feb 3, 2024
1 parent 4c42447 commit 7540cf3
Showing 1 changed file with 6 additions and 2 deletions.
8 changes: 6 additions & 2 deletions modules/languages/hcl.nix
Original file line number Diff line number Diff line change
Expand Up @@ -2,17 +2,21 @@

let
inherit (lib) mkDefault;
inherit (pkgs) opentofu tflint;
in
{
config = {
plugins = {
lsp.servers.terraformls.enable = true;
lsp.servers.terraformls = {
enable = true;
extraOptions.path = "${opentofu}";
};

rooter.patterns = [ "base.tf" ".terraform.lock.hcl" ".terraform" ];
treesitter.ensureInstalled = [ "hcl" "terraform" ];
};

extraPlugins = [ pkgs.vimPlugins.vim-terraform ];
extraPackages = with pkgs; [ terraform tflint ];
extraPackages = [ tflint ];
};
}

0 comments on commit 7540cf3

Please sign in to comment.