diff options
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); |