diff options
Diffstat (limited to 'helix-lsp/src/client.rs')
-rw-r--r-- | helix-lsp/src/client.rs | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/helix-lsp/src/client.rs b/helix-lsp/src/client.rs index 672247a9..7c9de90c 100644 --- a/helix-lsp/src/client.rs +++ b/helix-lsp/src/client.rs @@ -85,6 +85,12 @@ impl Client { } } + pub fn capabilities(&self) -> &lsp::ServerCapabilities { + self.capabilities + .as_ref() + .expect("language server not yet initialized!") + } + /// Execute a RPC request on the language server. pub async fn request<R: lsp::request::Request>(&self, params: R::Params) -> Result<R::Result> where |