add terraform ls

nix-components
pegasust 2022-10-04 22:37:18 -07:00
parent 6b4da6304f
commit 01d84e12ff
1 changed files with 5 additions and 4 deletions

View File

@ -268,7 +268,7 @@ end, { desc = '[Z]ettelkasten [G]rep' })
require('nvim-treesitter.configs').setup {
ensure_installed = {
'tsx', 'toml', 'lua', 'typescript', 'rust', 'go', 'yaml', 'json', 'php', 'css',
'python', 'prisma', 'html', "dockerfile", "c", "cpp",
'python', 'prisma', 'html', "dockerfile", "c", "cpp", "hcl",
},
sync_install = false,
highlight = { enable = true },
@ -318,7 +318,7 @@ require('guess-indent').setup {
"help",
"nofile",
"terminal",
"prompt",
-- "prompt",
},
}
@ -402,14 +402,15 @@ end
local capabilities = require('cmp_nvim_lsp').update_capabilities(vim.lsp.protocol.make_client_capabilities())
-- default language servers
local servers = { 'clangd', 'rust_analyzer', 'pyright', 'tsserver', 'sumneko_lua', 'cmake', 'tailwindcss', 'prismals',
'rnix', 'eslint' }
'rnix', 'eslint' , 'terraform-ls', 'tflint'}
require("mason").setup({
ui = {
icons = {
package_installed = "",
package_pending = "",
package_uninstalled = ""
}
},
check_outdated_packages_on_open = true,
}
})
require('mason-lspconfig').setup({