summaryrefslogtreecommitdiff
path: root/lsp-write.c
diff options
context:
space:
mode:
authorpommicket <pommicket@gmail.com>2022-12-22 23:46:17 -0500
committerpommicket <pommicket@gmail.com>2022-12-22 23:46:17 -0500
commitdaee4283b56603e172aac547c20c5534e588f60d (patch)
treea271d0f1a0754945e08f10fca2061f194b74882e /lsp-write.c
parentb906df08a805e704e45cb7f2bc4b31e83d3222fe (diff)
finish up capabilities (for now)
Diffstat (limited to 'lsp-write.c')
-rw-r--r--lsp-write.c13
1 files changed, 13 insertions, 0 deletions
diff --git a/lsp-write.c b/lsp-write.c
index 9922862..4a56543 100644
--- a/lsp-write.c
+++ b/lsp-write.c
@@ -291,7 +291,20 @@ static void write_request(LSP *lsp, LSPRequest *request) {
// completion capabilities
write_key_obj_start(o, "completionItem");
write_key_bool(o, "snippetSupport", false);
+ write_key_bool(o, "commitCharactersSupport", false);
+ write_key_arr_start(o, "documentationFormat");
+ // we dont really support markdown
+ write_arr_elem_string(o, "plaintext");
+ write_arr_end(o);
write_key_bool(o, "deprecatedSupport", true);
+ write_key_bool(o, "preselectSupport", false);
+ write_key_obj_start(o, "tagSupport");
+ write_key_arr_start(o, "valueSet");
+ // currently the only tag in the spec
+ write_arr_elem_number(o, 1);
+ write_arr_end(o);
+ write_obj_end(o);
+ write_key_bool(o, "insertReplaceSupport", false);
write_obj_end(o);
// "completion item kinds" supported by ted
// (these are the little icons displayed for function/variable/etc.)