summaryrefslogtreecommitdiff
path: root/ide-autocomplete.c
diff options
context:
space:
mode:
authorpommicket <pommicket@gmail.com>2023-08-05 14:53:04 -0400
committerpommicket <pommicket@gmail.com>2023-08-05 14:53:38 -0400
commit0f38b14e10f553cb49a5da65125e21e1591cba3e (patch)
tree7e961ca6a949941fdad89a52efffe7a3be1159a5 /ide-autocomplete.c
parent4726bd906ac8c165a10d819a33ccb3697f8040a9 (diff)
more plugin stuff
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) {