vim-lsp-typescript


Ⅰ. 插件描述

Sets up vim-lsp for TypeScript development.

Ⅱ. 基本信息

创建日期:  2018-05-09
使用用户:  17
Github星:  13
插件作者:  Ryan Olson

Ⅲ. 安装方法

使用Vundle管理器安装

在你的.vimrc下添加:
Plugin 'ryanolsonx/vim-lsp-typescript'
… 然后在Vim中运行以下命令:
:source %
:PluginInstall

对于Vundle版本 < 0.10.2,请用上面的Bundle替换Plugin。

使用NeoBundle管理器安装

在你的.vimrc下添加:
NeoBundle 'ryanolsonx/vim-lsp-typescript'
… 然后在Vim中运行以下命令:
:source %
:NeoBundleInstall

使用VimPlug管理器安装

在你的.vimrc下添加:
Plug 'ryanolsonx/vim-lsp-typescript'
… 然后在Vim中运行以下命令:
:source %
:PlugInstall

使用Pathogen管理器安装

在终端中运行以下命令:
cd ~/.vim/bundle
git clone https://github.com/ryanolsonx/vim-lsp-typescript

Ⅳ. 文档说明

# vim-lsp-typescript

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.

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

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.

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 +qall
vim -u /tmp/minimal.vimrc ./your_test_file.ts

License

MIT

添加新评论