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 = { local language_servers = {
"ansiblels", "bashls", "clangd", "dockerls", "efm", "eslint", "html", "ansiblels", "bashls", "clangd", "dockerls", "efm", "eslint", "html",
"pyright", "rust_analyzer", "sumneko_lua", "svelte", "taplo", "tsserver", "pyright", "rust_analyzer", "sumneko_lua", "svelte", "taplo", "terraformls",
"volar" "tflint", "tsserver", "volar"
} }
for _, server_name in pairs(language_servers) do for _, server_name in pairs(language_servers) do
@ -17,7 +17,6 @@ for _, server_name in pairs(language_servers) do
print("Installing " .. server_name) print("Installing " .. server_name)
server:install() server:install()
end end
end end
local extra_server_opts = { local extra_server_opts = {

View file

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