Skip to content
This repository has been archived by the owner on Apr 16, 2024. It is now read-only.

Commit

Permalink
feat(modules): Add Terraform support
Browse files Browse the repository at this point in the history
  • Loading branch information
pbar1 authored and NTBBloodbath committed Feb 28, 2022
1 parent 667b4ee commit ab3a03c
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 0 deletions.
1 change: 1 addition & 0 deletions doom_modules.lua
Original file line number Diff line number Diff line change
Expand Up @@ -79,6 +79,7 @@ M.modules = {
-- "comment", -- Better annotations and comments
-- "config", -- Configuration files (JSON, YAML, TOML)
-- "dockerfile", -- Do you like containers, right?
-- "terraform", -- Terraform and HCL support
},
utilities = {
-- "lazygit", -- LazyGit integration for Neovim, requires LazyGit
Expand Down
1 change: 1 addition & 0 deletions lua/doom/modules/config/doom-lsp-installer.lua
Original file line number Diff line number Diff line change
Expand Up @@ -51,6 +51,7 @@ return function()
-- solang = { 'solang' },
-- sorbet = { 'sorbet' },
svelte = { "svelte" },
terraform = { "terraformls" },
typescript = { "tsserver" },
-- vala = { 'valals' },
vim = { "vimls" },
Expand Down
3 changes: 3 additions & 0 deletions lua/doom/modules/config/doom-treesitter.lua
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,9 @@ return function()
table.insert(langs, "json")
table.insert(langs, "yaml")
table.insert(langs, "toml")
-- If the lang is Terraform then add parser for HCL
elseif lang:find("terraform") then
table.insert(langs, "hcl")
else
lang = lang:gsub("%s+%+lsp(%(%a+%))", ""):gsub("%s+%+lsp", ""):gsub("%s+%+debug", "")
table.insert(langs, lang)
Expand Down

0 comments on commit ab3a03c

Please sign in to comment.