feat: add terraform support

This commit is contained in:
Michael Mandl 2022-03-17 09:14:16 +01:00
parent c4a5bc4dce
commit 5e72b97e85
Signed by: mandlm
GPG key ID: 4AA25D647AA54CC7
2 changed files with 5 additions and 6 deletions

View file

@ -7,8 +7,8 @@ table.insert(nvim_runtime_path, "lua/?/init.lua")
local language_servers = {
"ansiblels", "bashls", "clangd", "dockerls", "efm", "eslint", "html",
"pyright", "rust_analyzer", "sumneko_lua", "svelte", "taplo", "tsserver",
"volar"
"pyright", "rust_analyzer", "sumneko_lua", "svelte", "taplo", "terraformls",
"tflint", "tsserver", "volar"
}
for _, server_name in pairs(language_servers) do
@ -17,7 +17,6 @@ for _, server_name in pairs(language_servers) do
print("Installing " .. server_name)
server:install()
end
end
local extra_server_opts = {

View file

@ -2,8 +2,8 @@ require('nvim-treesitter.configs').setup({
highlight = {enable = true, additional_vim_regex_highlighting = false},
indent = {enable = true},
ensure_installed = {
"bash", "c", "cpp", "css", "dockerfile", "html", "javascript", "json",
"latex", "lua", "markdown", "python", "rust", "svelte", "toml", "tsx",
"typescript", "vim", "vue", "yaml"
"bash", "c", "cpp", "css", "dockerfile", "hcl", "html", "javascript",
"json", "latex", "lua", "markdown", "python", "rust", "svelte", "toml",
"tsx", "typescript", "vim", "vue", "yaml"
}
})