Skip to content

Commit

Permalink
feat(pack): added terraform pack (#200)
Browse files Browse the repository at this point in the history
feat: added terraform pack
  • Loading branch information
Souravpakhira authored May 13, 2023
1 parent 9b6dfb5 commit 54a05ae
Show file tree
Hide file tree
Showing 2 changed files with 28 additions and 0 deletions.
7 changes: 7 additions & 0 deletions lua/astrocommunity/pack/terraform/README.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
# Terraform Language Pack

This plugin pack does the following:

- Adds `terraform` Treesitter parser
- Adds `terraformls` language server
- Adds `tflint` and `tfsec` linters
21 changes: 21 additions & 0 deletions lua/astrocommunity/pack/terraform/terraform.lua
Original file line number Diff line number Diff line change
@@ -0,0 +1,21 @@
local utils = require "astronvim.utils"
return {
{
"nvim-treesitter/nvim-treesitter",
opts = function(_, opts)
if opts.ensure_installed ~= "all" then
opts.ensure_installed = utils.list_insert_unique(opts.ensure_installed, "terraform")
end
end,
},
{
"williamboman/mason-lspconfig.nvim",
opts = function(_, opts) opts.ensure_installed = utils.list_insert_unique(opts.ensure_installed, "terraformls") end,
},
{
"jay-babu/mason-null-ls.nvim",
opts = function(_, opts)
opts.ensure_installed = utils.list_insert_unique(opts.ensure_installed, { "tflint", "tfsec" })
end,
},
}

0 comments on commit 54a05ae

Please sign in to comment.