on master help sign in
lsp: Disable snippet_support until we implement it.
commit61ce2c9cfe07f1cb0b6a6bfd7136b63d667b6795 authorBlaž Hrastnik <blaz@mxxn.io> dateMon 22 Feb 2021, 14:42 (6 years ago) parent004a4f3
2 files changed+20−7
helix-lsp/src/client.rs+19−6 helix-term/Cargo.toml+1−1
helix-lsp/src/client.rs+19−6
@@ -189,12 +189,25 @@ impl Client {
189189 root_uri: None, // set to project root in the future
190190 initialization_options: None,
191191 capabilities: lsp::ClientCapabilities {
192− // text_document:
193− // { completion: {
194− // dynamic_registration: bool
195− // completion_item: { snippet, documentation_format, ... }
196− // completion_item_kind: { }
197− // } }
192+ text_document: Some(lsp::TextDocumentClientCapabilities {
193+ completion: Some(lsp::CompletionClientCapabilities {
194+ completion_item: Some(lsp::CompletionItemCapability {
195+ snippet_support: Some(false), // TODO
196+ ..Default::default()
197+ }),
198+ completion_item_kind: Some(lsp::CompletionItemKindCapability {
199+ ..Default::default()
200+ }),
201+ context_support: None, // additional context information Some(true)
202+ ..Default::default()
203+ }),
204+ // { completion: {
205+ // dynamic_registration: bool
206+ // completion_item: { snippet, documentation_format, ... }
207+ // completion_item_kind: { }
208+ // } }
209+ ..Default::default()
210+ }),
198211 ..Default::default()
199212 },
200213 trace: None,
helix-term/Cargo.toml+1−1
@@ -31,7 +31,7 @@ futures-util = "0.3"
3131
3232# Logging
3333fern = "0.6"
34−chrono = "0.4"
34+chrono = { version = "0.4", default-features = false, features = ["clock"] }
3535log = "0.4"
3636
3737# File picker