summaryrefslogtreecommitdiff
path: root/ide-autocomplete.c
diff options
context:
space:
mode:
Diffstat (limited to 'ide-autocomplete.c')
-rw-r--r--ide-autocomplete.c12
1 files changed, 12 insertions, 0 deletions
diff --git a/ide-autocomplete.c b/ide-autocomplete.c
index ee0ebf3..8cd3d91 100644
--- a/ide-autocomplete.c
+++ b/ide-autocomplete.c
@@ -5,6 +5,18 @@
#define TAGS_MAX_COMPLETIONS 200 // max # of tag completions to scroll through
#define AUTOCOMPLETE_NCOMPLETIONS_VISIBLE 10 // max # of completions to show at once
+struct Autocompletion {
+ char *label;
+ char *filter;
+ char *text;
+ /// this can be NULL!
+ char *detail;
+ /// this can be NULL!
+ char *documentation;
+ bool deprecated;
+ SymbolKind kind;
+};
+
static void autocomplete_clear_completions(Autocomplete *ac) {
arr_foreach_ptr(ac->completions, Autocompletion, completion) {