From 61ce2c9cfe07f1cb0b6a6bfd7136b63d667b6795 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Bla=C5=BE=20Hrastnik?= Date: Mon, 22 Feb 2021 14:42:12 +0900 Subject: [PATCH] lsp: Disable snippet_support until we implement it. --- helix-lsp/src/client.rs | 25 +++++++++++++++++++------ helix-term/Cargo.toml | 2 +- 2 files changed, 20 insertions(+), 7 deletions(-) diff --git a/helix-lsp/src/client.rs b/helix-lsp/src/client.rs index 1e20e67d3..b8b2971c8 100644 --- a/helix-lsp/src/client.rs +++ b/helix-lsp/src/client.rs @@ -189,12 +189,25 @@ impl Client { root_uri: None, // set to project root in the future initialization_options: None, capabilities: lsp::ClientCapabilities { - // text_document: - // { completion: { - // dynamic_registration: bool - // completion_item: { snippet, documentation_format, ... } - // completion_item_kind: { } - // } } + text_document: Some(lsp::TextDocumentClientCapabilities { + completion: Some(lsp::CompletionClientCapabilities { + completion_item: Some(lsp::CompletionItemCapability { + snippet_support: Some(false), // TODO + ..Default::default() + }), + completion_item_kind: Some(lsp::CompletionItemKindCapability { + ..Default::default() + }), + context_support: None, // additional context information Some(true) + ..Default::default() + }), + // { completion: { + // dynamic_registration: bool + // completion_item: { snippet, documentation_format, ... } + // completion_item_kind: { } + // } } + ..Default::default() + }), ..Default::default() }, trace: None, diff --git a/helix-term/Cargo.toml b/helix-term/Cargo.toml index e410c6c41..34b376361 100644 --- a/helix-term/Cargo.toml +++ b/helix-term/Cargo.toml @@ -31,7 +31,7 @@ futures-util = "0.3" # Logging fern = "0.6" -chrono = "0.4" +chrono = { version = "0.4", default-features = false, features = ["clock"] } log = "0.4" # File picker