diff options
author | pommicket <pommicket@gmail.com> | 2022-12-22 23:46:17 -0500 |
---|---|---|
committer | pommicket <pommicket@gmail.com> | 2022-12-22 23:46:17 -0500 |
commit | daee4283b56603e172aac547c20c5534e588f60d (patch) | |
tree | a271d0f1a0754945e08f10fca2061f194b74882e /lsp-write.c | |
parent | b906df08a805e704e45cb7f2bc4b31e83d3222fe (diff) |
finish up capabilities (for now)
Diffstat (limited to 'lsp-write.c')
-rw-r--r-- | lsp-write.c | 13 |
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.) |