Expand JSX/TSX note to mention typescriptreact (#38)

This commit is contained in:
Rich Churcher 2019-06-11 16:23:34 +12:00 committed by Qiming zhao
parent 1e6153289f
commit 9397db62f2

View file

@ -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