From 9397db62f28a55deb85e2be1ea5f3104cf61e4ab Mon Sep 17 00:00:00 2001 From: Rich Churcher Date: Tue, 11 Jun 2019 16:23:34 +1200 Subject: [PATCH] Expand JSX/TSX note to mention `typescriptreact` (#38) --- Readme.md | 12 +++++++----- 1 file changed, 7 insertions(+), 5 deletions(-) diff --git a/Readme.md b/Readme.md index 8a0d6bb..49bea79 100644 --- a/Readme.md +++ b/Readme.md @@ -4,12 +4,14 @@ Tsserver language server extension for [coc.nvim](https://github.com/neoclide/co Most of the code is from `typescript-language-features` extension which is bundled with VSCode. -**Note:** if you're using [nvm](https://github.com/creationix/nvm) or other node -version manager, you need configure `tsserver.npm` to your global npm executable -path to avoid fetching types on vim start every time. +**Note:** if you're using [nvm](https://github.com/creationix/nvm) or other +node version manager, you need to configure `tsserver.npm` to your global npm +executable path to avoid fetching types on vim start every time. -**Note:** for react to work as expected, you need have your jsx filetype to be `javascript.jsx` -and your tsx filetype to be `typescript.jsx` or `typescript.tsx` +**Note:** for React to work as expected, you need your JSX filetype to be +`javascript.jsx` and your TSX filetype to be `typescript.jsx` or +`typescript.tsx`. In coc.nvim, these filetypes are mapped to `javascriptreact` +and `typescriptreact` because that's what tsserver uses. ## Install