From de49851c045eccb3d92c2a35aa2363dd5aafd57f Mon Sep 17 00:00:00 2001 From: surtur Date: Sun, 30 Oct 2022 03:59:54 +0100 Subject: [PATCH] vimrc: add terraform-ls LSP set-up --- .vim/vimrc | 11 +++++++++++ 1 file changed, 11 insertions(+) diff --git a/.vim/vimrc b/.vim/vimrc index bfc83f7..13bd9cf 100644 --- a/.vim/vimrc +++ b/.vim/vimrc @@ -981,6 +981,17 @@ if executable('zls') \ }) augroup END endif +" terraform language server +if executable('terraform-ls') + augroup lsp_tf + autocmd! + au User lsp_setup call lsp#register_server({ + \ 'name': 'terraform-ls', + \ 'cmd': {server_info->[&shell, &shellcmdflag, 'terraform-ls']}, + \ 'allowlist': ['terraform'], + \ }) + augroup END +endif if executable('pyls') " pip install python-language-server augroup lsp_py