diff options
Diffstat (limited to '')
-rw-r--r-- | .config/nvim/after/plugin/lsp.lua | 7 | ||||
-rw-r--r-- | .config/nvim/after/plugin/treesitter.lua | 1 |
2 files changed, 8 insertions, 0 deletions
diff --git a/.config/nvim/after/plugin/lsp.lua b/.config/nvim/after/plugin/lsp.lua index 3435508..d562e6f 100644 --- a/.config/nvim/after/plugin/lsp.lua +++ b/.config/nvim/after/plugin/lsp.lua @@ -59,6 +59,13 @@ require('lspconfig').gopls.setup({ }, }) +require'lspconfig'.terraformls.setup{} +vim.api.nvim_create_autocmd({"BufWritePre"}, { + pattern = {"*.tf", "*.tfvars"}, + callback = function() + vim.lsp.buf.format() + end, +}) -- cmp diff --git a/.config/nvim/after/plugin/treesitter.lua b/.config/nvim/after/plugin/treesitter.lua index 4e27946..0bc651b 100644 --- a/.config/nvim/after/plugin/treesitter.lua +++ b/.config/nvim/after/plugin/treesitter.lua @@ -13,6 +13,7 @@ require'nvim-treesitter.configs'.setup { 'regex', 'markdown', 'markdown_inline', + 'terraform', 'comment', }, |