Skip to content

Commit

Permalink
fix(terraform-extra): Drop unnecessary commentstring config for terra…
Browse files Browse the repository at this point in the history
…form

The commentstring for terraform and hcl files is now handled by nvim-ts-context-commentstring:

JoosepAlviste/nvim-ts-context-commentstring#94
  • Loading branch information
NeckBeardPrince committed Mar 8, 2024
1 parent e3bfcb9 commit 29a5c9e
Showing 1 changed file with 0 additions and 27 deletions.
27 changes: 0 additions & 27 deletions lua/lazyvim/plugins/extras/lang/terraform.lua
Original file line number Diff line number Diff line change
@@ -1,11 +1,5 @@
local Util = require("lazyvim.util")

vim.api.nvim_create_autocmd("FileType", {
pattern = { "hcl", "terraform" },
desc = "terraform/hcl commentstring configuration",
command = "setlocal commentstring=#\\ %s",
})

return {
{
"nvim-treesitter/nvim-treesitter",
Expand Down Expand Up @@ -58,25 +52,4 @@ return {
},
},
},
{
"nvim-telescope/telescope.nvim",
dependencies = {
{
"ANGkeith/telescope-terraform-doc.nvim",
config = function()
Util.on_load("telescope.nvim", function()
require("telescope").load_extension("terraform_doc")
end)
end,
},
{
"cappyzawa/telescope-terraform.nvim",
config = function()
Util.on_load("telescope.nvim", function()
require("telescope").load_extension("terraform")
end)
end,
},
},
},
}

0 comments on commit 29a5c9e

Please sign in to comment.