From 79b63af94126c7f974f6b6b40c9d60446fcafb7f Mon Sep 17 00:00:00 2001 From: Joe Date: Mon, 11 Mar 2024 13:41:49 +0100 Subject: up --- .config/nvim/after/plugin/lsp.lua | 7 +++++++ 1 file changed, 7 insertions(+) (limited to '.config/nvim/after/plugin/lsp.lua') 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 -- cgit v1.2.3