diff options
author | Blaž Hrastnik | 2021-03-24 09:17:00 +0000 |
---|---|---|
committer | Blaž Hrastnik | 2021-03-24 09:17:00 +0000 |
commit | 9a36d2c2a8c4c7c3932de59d1ec145faf3301f2d (patch) | |
tree | 5a9a98879c6a87c5fdeff7370999a6f70af71299 /helix-lsp | |
parent | 025d63bc3065529b68945816e9652c779e4be862 (diff) |
wip: Hooks & trigger characters for completion/signature_help.
Diffstat (limited to 'helix-lsp')
-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 |