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 { require('nvim-treesitter.configs').setup {
ensure_installed = { ensure_installed = {
'tsx', 'toml', 'lua', 'typescript', 'rust', 'go', 'yaml', 'json', 'php', 'css', '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, sync_install = false,
highlight = { enable = true }, highlight = { enable = true },
@ -318,7 +318,7 @@ require('guess-indent').setup {
"help", "help",
"nofile", "nofile",
"terminal", "terminal",
"prompt", -- "prompt",
}, },
} }
@ -402,14 +402,15 @@ end
local capabilities = require('cmp_nvim_lsp').update_capabilities(vim.lsp.protocol.make_client_capabilities()) local capabilities = require('cmp_nvim_lsp').update_capabilities(vim.lsp.protocol.make_client_capabilities())
-- default language servers -- default language servers
local servers = { 'clangd', 'rust_analyzer', 'pyright', 'tsserver', 'sumneko_lua', 'cmake', 'tailwindcss', 'prismals', local servers = { 'clangd', 'rust_analyzer', 'pyright', 'tsserver', 'sumneko_lua', 'cmake', 'tailwindcss', 'prismals',
'rnix', 'eslint' } 'rnix', 'eslint' , 'terraform-ls', 'tflint'}
require("mason").setup({ require("mason").setup({
ui = { ui = {
icons = { icons = {
package_installed = "", package_installed = "",
package_pending = "", package_pending = "",
package_uninstalled = "" package_uninstalled = ""
} },
check_outdated_packages_on_open = true,
} }
}) })
require('mason-lspconfig').setup({ require('mason-lspconfig').setup({