summaryrefslogtreecommitdiff
path: root/ted.h
diff options
context:
space:
mode:
authorpommicket <pommicket@gmail.com>2022-12-22 21:23:54 -0500
committerpommicket <pommicket@gmail.com>2022-12-22 21:23:54 -0500
commitc58f2247a9f9aaea86e461c176e4757e4d17292f (patch)
treeed453ed66b5e576c0029539faa0982c6c26cf31a /ted.h
parent91ff61cc22c08e2c247b6b689561e6d18cf276e7 (diff)
symbol kind
Diffstat (limited to 'ted.h')
-rw-r--r--ted.h12
1 files changed, 12 insertions, 0 deletions
diff --git a/ted.h b/ted.h
index d56f3ab..7d23088 100644
--- a/ted.h
+++ b/ted.h
@@ -352,11 +352,23 @@ typedef struct {
u32 build_output_line; // which line in the build output corresponds to this error
} BuildError;
+// LSPSymbolKinds are translated to these. this is a much coarser categorization
+typedef enum {
+ SYMBOL_OTHER,
+ SYMBOL_FUNCTION,
+ SYMBOL_FIELD,
+ SYMBOL_TYPE,
+ SYMBOL_VARIABLE,
+ SYMBOL_CONSTANT,
+ SYMBOL_KEYWORD
+} SymbolKind;
+
typedef struct {
char *label;
char *filter;
char *text;
char *detail; // this can be NULL!
+ SymbolKind kind;
} Autocompletion;
typedef struct {