autozimu / LanguageClient-neovim

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

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

For legacy python implementation, see branch master.

LanguageClient-neovim

CircleCI Join the chat at https://gitter.im/LanguageClient-neovim/LanguageClient-neovim

Language Server Protocol 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'],
    \ }

" note that if you are using Plug mapping you should not use `noremap` mappings.
nmap <F5> <Plug>(lcn-menu)
" Or map each action separately
nmap <silent>K <Plug>(lcn-hover)
nmap <silent> gd <Plug>(lcn-definition)
nmap <silent> <F2> <Plug>(lcn-rename)

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!

Mappings

LanguageClient-neovim defines various Plug mappings, see :help LanguageClientMappings for a full list and an example configuration.

Install

Full installation steps

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

About

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

License:MIT License


Languages

Language:Rust 71.3%Language:Vim Script 17.8%Language:Python 6.0%Language:Shell 1.4%Language:Nix 1.2%Language:Elixir 0.5%Language:Scala 0.4%Language:Makefile 0.4%Language:PowerShell 0.3%Language:Java 0.2%Language:Dockerfile 0.1%Language:JavaScript 0.1%Language:C++ 0.1%Language:PureScript 0.1%Language:C# 0.1%Language:C 0.0%Language:TypeScript 0.0%Language:HTML 0.0%Language:CMake 0.0%Language:Go 0.0%Language:PHP 0.0%Language:Haskell 0.0%Language:CSS 0.0%