From 29a5c9e5b6b05d85f718272cebeba031e7520cb8 Mon Sep 17 00:00:00 2001 From: Adam Stracener Date: Fri, 8 Mar 2024 08:22:44 -0600 Subject: [PATCH] fix(terraform-extra): Drop unnecessary commentstring config for terraform The commentstring for terraform and hcl files is now handled by nvim-ts-context-commentstring: JoosepAlviste/nvim-ts-context-commentstring#94 --- lua/lazyvim/plugins/extras/lang/terraform.lua | 27 ------------------- 1 file changed, 27 deletions(-) diff --git a/lua/lazyvim/plugins/extras/lang/terraform.lua b/lua/lazyvim/plugins/extras/lang/terraform.lua index d486faaf..21a7fb9b 100644 --- a/lua/lazyvim/plugins/extras/lang/terraform.lua +++ b/lua/lazyvim/plugins/extras/lang/terraform.lua @@ -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", @@ -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, - }, - }, - }, }