Sets up vim-lsp for TypeScript and JavaScript.
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.
You must have a package.json file at the root of your project. All JavaScript projects should have one anyway.
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
MIT