Expand JSX/TSX note to mention typescriptreact
(#38)
This commit is contained in:
parent
1e6153289f
commit
9397db62f2
1 changed files with 7 additions and 5 deletions
12
Readme.md
12
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
|
||||
|
||||
|
|
Loading…
Reference in a new issue