aboutsummaryrefslogtreecommitdiff
path: root/.vim/after/plugin/lsp.vim
diff options
context:
space:
mode:
Diffstat (limited to '.vim/after/plugin/lsp.vim')
-rw-r--r--.vim/after/plugin/lsp.vim8
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