vimrc: add terraform-ls LSP set-up

This commit is contained in:
surtur 2022-10-30 03:59:54 +01:00
parent 63e8f717f5
commit de49851c04
Signed by: wanderer
SSH Key Fingerprint: SHA256:MdCZyJ2sHLltrLBp0xQO0O1qTW9BT/xl5nXkDvhlMCI

@ -981,6 +981,17 @@ if executable('zls')
\ }) \ })
augroup END augroup END
endif 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') if executable('pyls')
" pip install python-language-server " pip install python-language-server
augroup lsp_py augroup lsp_py