Language server protocol client implement in Rust. First target editor is neovim. First target language server is rust-analyzer
- Clone project
- Add path to vim-plug:
Plug '~/path/to/lspc'
- Build project
cargo build
- Config your vim:
let g:lspc = {
\ 'rust': {
\ 'root_markers': ['Cargo.lock'],
\ 'command': ['rustup', 'run', 'stable', 'ra_lsp_server'],
\ },
\ }
- Start Rust handler:
:LspcStart
or
:call lspc#init()
- Test command:
:call lspc#hello_from_the_other_side()
- Start Language Server for current buffer
:call lspc#start_lang_server()
- View debug log at
log.txt