diff options
author | pommicket <pommicket@gmail.com> | 2022-12-27 18:28:56 -0500 |
---|---|---|
committer | pommicket <pommicket@gmail.com> | 2022-12-27 18:28:56 -0500 |
commit | e112a90ff73f7f407ed2251f905565713c237bc1 (patch) | |
tree | fd2cca33161c807cbbf8b29d9a49e778bee5aca8 /signature-help.c | |
parent | 1eaef3694d54d3d92f0b43304c72f5148b4e5db9 (diff) |
start signature help
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); +} |