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