mirror of
https://github.com/LazyVim/LazyVim.git
synced 2026-07-25 14:01:06 +00:00
fix(terraform): Add commentstring and proper syntax highlighting for tfvars files
This commit is contained in:
parent
a50f92f755
commit
82ef817103
1 changed files with 2 additions and 1 deletions
|
|
@ -1,8 +1,9 @@
|
|||
vim.api.nvim_create_autocmd("FileType", {
|
||||
pattern = { "hcl", "terraform" },
|
||||
pattern = { "hcl", "terraform", "terraform-vars" },
|
||||
desc = "terraform/hcl commentstring configuration",
|
||||
command = "setlocal commentstring=#\\ %s",
|
||||
})
|
||||
vim.treesitter.language.register("terraform", "terraform-vars")
|
||||
|
||||
return {
|
||||
{
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue