Tsserver extension for coc.nvim that provide rich features like VSCode for javascript & typescript. Forked from https://github.com/neoclide/coc-tsserver
Find a file
2018-10-09 01:50:49 +08:00
src CompletionItemKind default to Variable 2018-10-09 01:50:28 +08:00
.gitignore init 2018-09-07 20:40:51 +08:00
.npmignore init 2018-09-07 20:40:51 +08:00
package.json Release 1.0.11 2018-10-09 01:50:49 +08:00
Readme.md doc 2018-09-07 20:43:24 +08:00
tsconfig.json init 2018-09-07 20:40:51 +08:00
tslint.json init 2018-09-07 20:40:51 +08:00
yarn.lock fix locate of bundled typescript module 2018-09-27 19:30:26 +08:00

coc-tsserver

Tsserver language server extension for coc.nvim.

Most code from typescript-language-features extension which bundled with VSCode.

Install

In your vim/neovim, run command:

:CocInstall coc-tsserver

Features

Almost same as VSCode.

  • Support javascript & typescript and jsx/tsx.
  • Install typings automatically.
  • Commands to work with tsserver, including:
    • tsserver.reloadProjects
    • tsserver.openTsServerLog
    • tsserver.goToProjectConfig
    • tsserver.restart
    • tsserver.format
    • tsserver.organizeImports
    • tsserver.watchBuild
  • Code completion support.
  • Go to definition.
  • Code validation.
  • Document highlight.
  • Document symbols of current buffer.
  • Folding and folding range of current buffer.
  • Format current buffer, range format and format on type.
  • Hover for documentation.
  • Implementations codeLens and references codeLens.
  • Organize imports command.
  • Quickfix using code actions.
  • Code refactor using code actions.
  • Find references.
  • Signature help.
  • Rename symbols support.
  • Rename imports on file rename.
  • Search for workspace symbols.

Configuration options

  • tsserver.enable set to false to disable tsserver language server.
  • tsserver.trace.server trace LSP traffic in output channel.

And many more, which are same as VSCode, trigger completion in your coc-settings.json to get full list.

License

MIT