summaryrefslogtreecommitdiff
path: root/lsp.h
diff options
context:
space:
mode:
authorpommicket <pommicket@gmail.com>2022-12-29 11:36:33 -0500
committerpommicket <pommicket@gmail.com>2022-12-29 11:36:33 -0500
commit948decc409bac1e3671afc5d0212b4b35c669b4a (patch)
treeb3d8e128cbfe8928767786a46b91047ac1a5d346 /lsp.h
parent1f9cd2a40d72d7982e8a9ff93e5ad432e14accc3 (diff)
more hover
Diffstat (limited to 'lsp.h')
-rw-r--r--lsp.h8
1 files changed, 8 insertions, 0 deletions
diff --git a/lsp.h b/lsp.h
index 9bbdd77..0b25091 100644
--- a/lsp.h
+++ b/lsp.h
@@ -272,6 +272,13 @@ typedef struct {
LSPSignatureInformation *signatures;
} LSPResponseSignatureHelp;
+typedef struct {
+ // the range of text to highlight
+ LSPRange range;
+ // little tool tip to show
+ LSPString contents;
+} LSPResponseHover;
+
typedef LSPRequestType LSPResponseType;
typedef struct {
@@ -284,6 +291,7 @@ typedef struct {
union {
LSPResponseCompletion completion;
LSPResponseSignatureHelp signature_help;
+ LSPResponseHover hover;
} data;
} LSPResponse;