LanguageClient-neovim

Language Server Protocol (LSP) support for vim and neovim.

Github星跟蹤圖

For legacy python implementation, see branch master.

LanguageClient-neovim

CircleCI

Language Server Protocol (LSP) support for vim and neovim.

rename

More recordings at Updates, screenshots & GIFs.

Features

Quick Start

Using vim-plug:

Plug 'autozimu/LanguageClient-neovim', {
    \ 'branch': 'next',
    \ 'do': 'bash install.sh',
    \ }

" (Optional) Multi-entry selection UI.
Plug 'junegunn/fzf'

Example configuration

" Required for operations modifying multiple buffers like rename.
set hidden

let g:LanguageClient_serverCommands = {
    \ 'rust': ['~/.cargo/bin/rustup', 'run', 'stable', 'rls'],
    \ 'javascript': ['/usr/local/bin/javascript-typescript-stdio'],
    \ 'javascript.jsx': ['tcp://127.0.0.1:2089'],
    \ 'python': ['/usr/local/bin/pyls'],
    \ 'ruby': ['~/.rbenv/shims/solargraph', 'stdio'],
    \ }

nnoremap <F5> :call LanguageClient_contextMenu()<CR>
" Or map each action separately
nnoremap <silent> K :call LanguageClient#textDocument_hover()<CR>
nnoremap <silent> gd :call LanguageClient#textDocument_definition()<CR>
nnoremap <silent> <F2> :call LanguageClient#textDocument_rename()<CR>

Run command nvim +PlugInstall +UpdateRemotePlugins +qa in shell to install
this plugin. Install corresponding language servers. Restart neovim/vim and
language services will be available right away. Happy hacking!

Install

INSTALL

Troubleshooting

Troubleshooting

Language Servers

Note, you will also need language server(s) to take advantages of
this plugin. To find list of language server implementations and how
to install them, please see http://langserver.org and/or
https://microsoft.github.io/language-server-protocol/implementors/servers/.

Documentation

:help LanguageClient for full list of configurations, commands and functions.

Changelog

See Updates. Subscribe the issue if you want to receive notifications.

Contributing

CONTRIBUTING

License

The MIT License.

主要指標

概覽
名稱與所有者autozimu/LanguageClient-neovim
主編程語言Rust
編程語言Python (語言數: 23)
平台
許可證MIT License
所有者活动
創建於2017-02-11 05:04:30
推送於2023-10-31 20:55:30
最后一次提交2018-08-07 09:22:44
發布數177
最新版本名稱binary-0.1.161-x86_64-unknown-linux-musl (發布於 )
第一版名稱0.1.0 (發布於 )
用户参与
星數3.6k
關注者數38
派生數273
提交數1.7k
已啟用問題?
問題數823
打開的問題數103
拉請求數338
打開的拉請求數22
關閉的拉請求數73
项目设置
已啟用Wiki?
已存檔?
是復刻?
已鎖定?
是鏡像?
是私有?