Sets up vim-lsp for TypeScript.
Note: This plugin no longer sets things up for JavaScript anymore. Please use ryanolsonx/vim-lsp-javascript to set up vim-lsp
for JavaScript use.
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'
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.
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 +qall
vim -u /tmp/minimal.vimrc ./your_test_file.ts
MIT