- Notifications
You must be signed in to change notification settings - Fork273
Language Server Protocol (LSP) support for vim and neovim.
License
autozimu/LanguageClient-neovim
Folders and files
Name | Name | Last commit message | Last commit date | |
---|---|---|---|---|
Repository files navigation
For legacy python implementation, seebranch master.
Language Server Protocol support forvim andneovim.
More recordings atUpdates, screenshots & GIFs.
- Non-blocking asynchronous calls.
- Sensible completion.Integrated well withdeoplete orncm2, orMUcomplete.Or simply with vim built-in
omnifunc
. - Realtime diagnostics/compiler/lint message.
- Rename.
- Hover/Get identifier info.
- Goto definition.
- Goto reference locations.
- Workspace/Document symbols query.
- Formatting.
- Code Action/Quick Fix.
Usingvim-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.sethiddenletg: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 separatelynmap<silent>K<Plug>(lcn-hover)nmap<silent>gd<Plug>(lcn-definition)nmap<silent><F2><Plug>(lcn-rename)
Run commandnvim +PlugInstall +UpdateRemotePlugins +qa
in shell to installthis plugin. Install corresponding language servers. Restart neovim/vim andlanguage services will be available right away. Happy hacking!
LanguageClient-neovim defines various Plug mappings, see:help LanguageClientMappings
for a fulllist and an example configuration.
Note, you will also need language server(s) to take advantages ofthis plugin. To find list of language server implementations and howto install them, please seehttp://langserver.org and/orhttps://microsoft.github.io/language-server-protocol/implementors/servers/.
About
Language Server Protocol (LSP) support for vim and neovim.
Topics
Resources
License
Uh oh!
There was an error while loading.Please reload this page.
Stars
Watchers
Forks
Packages0
Uh oh!
There was an error while loading.Please reload this page.