feat: add terraform support
This commit is contained in:
parent
c4a5bc4dce
commit
5e72b97e85
@ -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 = {
|
||||||
|
@ -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"
|
||||||
}
|
}
|
||||||
})
|
})
|
||||||
|
Reference in New Issue
Block a user