feat(lang): add telescope terraform integrations

Closes #2234

Add telescope integrations for:
- https://github.com/ANGkeith/telescope-terraform-doc.nvim
- https://github.com/cappyzawa/telescope-terraform.nvim
This commit is contained in:
Peter Benjamin 2023-12-21 12:44:16 -08:00
parent 879e29504d
commit 10755ebea1
No known key found for this signature in database

View file

@ -1,3 +1,5 @@
local Util = require("lazyvim.util")
vim.api.nvim_create_autocmd("FileType", {
pattern = { "hcl", "terraform" },
desc = "terraform/hcl commentstring configuration",
@ -56,4 +58,27 @@ return {
},
},
},
{
"nvim-telescope/telescope.nvim",
dependencies = {
{
"ANGkeith/telescope-terraform-doc.nvim",
event = "VeryLazy",
config = function()
Util.on_load("telescope.nvim", function()
require("telescope").load_extension("terraform_doc")
end)
end,
},
{
"cappyzawa/telescope-terraform.nvim",
event = "VeryLazy",
config = function()
Util.on_load("telescope.nvim", function()
require("telescope").load_extension("terraform")
end)
end,
},
},
},
}