diff options
-rw-r--r-- | .vim/after/plugin/lsp.vim | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/.vim/after/plugin/lsp.vim b/.vim/after/plugin/lsp.vim index 04a9647..0060414 100644 --- a/.vim/after/plugin/lsp.vim +++ b/.vim/after/plugin/lsp.vim @@ -84,6 +84,14 @@ if executable('rust-analyzer') \ }) endif +if executable('typescript-language-server') + au User lsp_setup call lsp#register_server({ + \ 'name': 'typescript-language-server', + \ 'cmd': {server_info->['typescript-language-server', '--stdio']}, + \ 'allowlist': ['javascript', 'typescript', 'typescriptreact', 'typescript.tsx'], + \ }) +endif + function! s:on_lsp_buffer_enabled() abort setlocal omnifunc=lsp#complete setlocal nocscopetag |