vimrc: add terraform-ls LSP set-up
This commit is contained in:
parent
63e8f717f5
commit
de49851c04
11
.vim/vimrc
11
.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
|
||||
|
Loading…
Reference in New Issue
Block a user