diff options
author | pommicket <pommicket@gmail.com> | 2022-12-29 11:36:33 -0500 |
---|---|---|
committer | pommicket <pommicket@gmail.com> | 2022-12-29 11:36:33 -0500 |
commit | 948decc409bac1e3671afc5d0212b4b35c669b4a (patch) | |
tree | b3d8e128cbfe8928767786a46b91047ac1a5d346 /lsp-write.c | |
parent | 1f9cd2a40d72d7982e8a9ff93e5ad432e14accc3 (diff) |
more hover
Diffstat (limited to 'lsp-write.c')
-rw-r--r-- | lsp-write.c | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/lsp-write.c b/lsp-write.c index dce4c22..7db0f66 100644 --- a/lsp-write.c +++ b/lsp-write.c @@ -408,6 +408,8 @@ static void write_request(LSP *lsp, LSPRequest *request) { write_obj_end(o); write_key_bool(o, "contextSupport", true); write_obj_end(o); + + // signature help capabilities write_key_obj_start(o, "signatureHelp"); write_key_obj_start(o, "signatureInformation"); write_key_obj_start(o, "parameterInformation"); @@ -418,6 +420,13 @@ static void write_request(LSP *lsp, LSPRequest *request) { // we don't have context support because sending the activeSignatureHelp member is annoying //write_key_bool(o, "contextSupport", true); write_obj_end(o); + + // hover capabilities + write_key_obj_start(o, "hover"); + write_key_arr_start(o, "contentFormat"); + write_arr_elem_string(o, "plaintext"); + write_arr_end(o); + write_obj_end(o); write_obj_end(o); write_key_obj_start(o, "workspace"); write_key_bool(o, "workspaceFolders", true); |