diff options
Diffstat (limited to 'signature-help.c')
-rw-r--r-- | signature-help.c | 12 |
1 files changed, 12 insertions, 0 deletions
diff --git a/signature-help.c b/signature-help.c new file mode 100644 index 0000000..df8c564 --- /dev/null +++ b/signature-help.c @@ -0,0 +1,12 @@ +// deals with textDocument/signatureHelp LSP requests + +void signature_help_open(Ted *ted, char32_t trigger) { + (void)trigger; // for now we don't send context + TextBuffer *buffer = ted->active_buffer; + if (!buffer) return; + LSP *lsp = buffer_lsp(buffer); + LSPRequest request = {.type = LSP_REQUEST_SIGNATURE_HELP}; + LSPRequestSignatureHelp *s = &request.data.signature_help; + s->position = buffer_cursor_pos_as_lsp_document_position(buffer); + lsp_send_request(lsp, &request); +} |