summaryrefslogtreecommitdiff
path: root/lsp.h
diff options
context:
space:
mode:
authorpommicket <pommicket@gmail.com>2022-12-23 14:48:32 -0500
committerpommicket <pommicket@gmail.com>2022-12-23 14:48:32 -0500
commitdbab768e4d0be378e65399f32f26edb4756533ce (patch)
tree7cd92c46903df99c1c3ad084d2eab0013f67c4ab /lsp.h
parent002215c37f6a1ced083c78b7c9b6f86f472b23cd (diff)
completion context + don't flash cursor if trigger character
Diffstat (limited to 'lsp.h')
-rw-r--r--lsp.h13
1 files changed, 13 insertions, 0 deletions
diff --git a/lsp.h b/lsp.h
index 1c6076a..b4a4aa3 100644
--- a/lsp.h
+++ b/lsp.h
@@ -88,8 +88,21 @@ typedef struct {
LSPPosition pos;
} LSPDocumentPosition;
+typedef enum {
+ LSP_TRIGGER_NONE = 0, // not actually defined in LSP spec
+ LSP_TRIGGER_INVOKED = 1,
+ LSP_TRIGGER_CHARACTER = 2,
+ LSP_TRIGGER_INCOMPLETE = 3
+} LSPCompletionTriggerKind;
+
+typedef struct {
+ LSPCompletionTriggerKind trigger_kind;
+ char trigger_character[5];
+} LSPCompletionContext;
+
typedef struct {
LSPDocumentPosition position;
+ LSPCompletionContext context;
} LSPRequestCompletion;
typedef struct {