update lockfile, fix treesitter for terraform filetypes

This commit is contained in:
Noah Masur
2023-01-09 13:09:12 -05:00
parent e4d76189e6
commit 2dda6a31bd
3 changed files with 9 additions and 5 deletions

View File

@ -42,7 +42,10 @@
command = "${pkgs.shfmt}/bin/shfmt",
extra_args = { "-i", "4", "-ci" },
}),
require("null-ls").builtins.formatting.terraform_fmt.with({ command = "${pkgs.terraform}/bin/terraform" }),
require("null-ls").builtins.formatting.terraform_fmt.with({
command = "${pkgs.terraform}/bin/terraform",
extra_filetypes = { "hcl" },
}),
},
on_attach = function(client, bufnr)

View File

@ -4,7 +4,8 @@
vim.filetype.add({
pattern = {
[".*%.tfvars"] = "terraform",
[".*%.tfvars"] = "hcl",
[".*%.tf"] = "hcl",
},
})