Skip to content
This repository has been archived by the owner on Jun 19, 2022. It is now read-only.

Latest commit

 

History

History
50 lines (40 loc) · 778 Bytes

README.md

File metadata and controls

50 lines (40 loc) · 778 Bytes

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