From 6d61c22ec9d45e7fa5d7ef40fe2268c81a800be1 Mon Sep 17 00:00:00 2001 From: Prabir Date: Wed, 25 Dec 2019 13:49:50 -0800 Subject: use typescriptreact as filetype for .tsx files --- settings/typescript-language-server.vim | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/settings/typescript-language-server.vim b/settings/typescript-language-server.vim index 1147976..9a5506d 100644 --- a/settings/typescript-language-server.vim +++ b/settings/typescript-language-server.vim @@ -5,7 +5,7 @@ augroup vimlsp_settings_typescript_language_server \ 'cmd': {server_info->lsp_settings#get('typescript-language-server', 'cmd', [lsp_settings#exec_path('typescript-language-server'), '--stdio'])}, \ 'root_uri':{server_info->lsp_settings#get('typescript-language-server', 'root_uri', lsp_settings#root_uri(['.git/', 'package.json']))}, \ 'initialization_options': lsp_settings#get('typescript-language-server', 'initialization_options', {"diagnostics": "true"}), - \ 'whitelist': lsp_settings#get('typescript-language-server', 'whitelist', ['typescript', 'typescript.tsx']), + \ 'whitelist': lsp_settings#get('typescript-language-server', 'whitelist', ['typescript', 'typescriptreact']), \ 'blacklist': lsp_settings#get('typescript-language-server', 'blacklist', []), \ 'config': lsp_settings#get('typescript-language-server', 'config', {}), \ 'workspace_config': lsp_settings#get('typescript-language-server', 'workspace_config', {}), -- cgit v1.2.3-54-g00ecf