summaryrefslogtreecommitdiff
path: root/helix-lsp/src/client.rs
diff options
context:
space:
mode:
authorBlaž Hrastnik2021-02-22 05:42:12 +0000
committerBlaž Hrastnik2021-02-22 05:42:12 +0000
commit61ce2c9cfe07f1cb0b6a6bfd7136b63d667b6795 (patch)
tree4027e8717fbd9fb67aede93ebcaf9619586b5474 /helix-lsp/src/client.rs
parent004a4f37a7aadf794ca746f7d9eee4043634cfe2 (diff)
lsp: Disable snippet_support until we implement it.
Diffstat (limited to 'helix-lsp/src/client.rs')
-rw-r--r--helix-lsp/src/client.rs25
1 files changed, 19 insertions, 6 deletions
diff --git a/helix-lsp/src/client.rs b/helix-lsp/src/client.rs
index 1e20e67d..b8b2971c 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,