I am going to write a plugin for an editor
what do you think will be more complex/time consuming: implementing lsp client or using ra directly
The api of rust-analyzer is unstable and frequently changes. The language server protocol is pretty stable. Maybe (and only maybe) in the short term using the api is easier, but it will require a lot more maintenance work in the long term.
thanks! also, is there a crate for lsp client
I think the lsp-types crate is what you are looking for.