lspc icon indicating copy to clipboard operation
lspc copied to clipboard

Language Server Protocol Client

Lsp Client

Language server protocol client implement in Rust. First target editor is neovim. First target language server is rust-analyzer

Development setup

  1. Clone project
  2. Add path to vim-plug:
Plug '~/path/to/lspc'
  1. Build project
cargo build
  1. Config your vim:
let g:lspc = {
      \ 'rust': {
      \     'root_markers': ['Cargo.lock'],
      \     'command': ['rustup', 'run', 'stable', 'ra_lsp_server'],
      \     },
      \ }
  1. Start Rust handler:
:LspcStart

or

:call lspc#init()
  1. Test command:
:call lspc#hello_from_the_other_side()
  1. Start Language Server for current buffer
:call lspc#start_lang_server()
  1. View debug log at log.txt