diff options
author | Pascal Kuthe | 2023-03-31 02:26:20 +0000 |
---|---|---|
committer | Blaž Hrastnik | 2023-03-31 06:19:36 +0000 |
commit | 9fe3adcff9866ef18953a067fbc0b84e7eb968b5 (patch) | |
tree | 067f52b556165bc462cca1fdc48e959f697638b5 /helix-lsp/src/client.rs | |
parent | a48d1a4abc0d23d6bc3cfda714d87b9fa4484da8 (diff) |
add option to enable/disable lsp snippets
Diffstat (limited to 'helix-lsp/src/client.rs')
-rw-r--r-- | helix-lsp/src/client.rs | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/helix-lsp/src/client.rs b/helix-lsp/src/client.rs index f9496338..94e99489 100644 --- a/helix-lsp/src/client.rs +++ b/helix-lsp/src/client.rs @@ -411,7 +411,7 @@ impl Client { // General messages // ------------------------------------------------------------------------------------------- - pub(crate) async fn initialize(&self) -> Result<lsp::InitializeResult> { + pub(crate) async fn initialize(&self, enable_snippets: bool) -> Result<lsp::InitializeResult> { if let Some(config) = &self.config { log::info!("Using custom LSP config: {}", config); } @@ -459,7 +459,7 @@ impl Client { text_document: Some(lsp::TextDocumentClientCapabilities { completion: Some(lsp::CompletionClientCapabilities { completion_item: Some(lsp::CompletionItemCapability { - snippet_support: Some(true), + snippet_support: Some(enable_snippets), resolve_support: Some(lsp::CompletionItemCapabilityResolveSupport { properties: vec![ String::from("documentation"), |