/vim-lsp-typescript

Sets up vim-lsp for TypeScript and JavaScript development.

Primary LanguageVim scriptMIT LicenseMIT

vim-lsp-typescript

Sets up vim-lsp for TypeScript and JavaScript.

Installing

Install typescript language server using npm:

npm install -g typescript typescript-language-server

Install the vim plugins:

" Dependencies
Plug 'prabirshrestha/async.vim'
Plug 'prabirshrestha/vim-lsp'

Plug 'ryanolsonx/vim-lsp-typescript'

Usage

TypeScript

You must have a tsconfig.json at the root of your project and this plugin will be able to pick it up and provide TypeScript support.

JavaScript

You must have a package.json file at the root of your project. All JavaScript projects should have one anyway.

Have an Issue?

Try to reproduce with a minimal vimrc configuration. You can use the one included in this project to create a temp vim setup.

curl https://raw.githubusercontent.com/ryanolsonx/vim-lsp-typescript/master/minimal.vimrc -o /tmp/minimal.vimrc
vim -u /tmp/minimal.vimrc +PlugInstall

License

MIT