summaryrefslogtreecommitdiff
path: root/ted.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 /ted.h
parent1f9cd2a40d72d7982e8a9ff93e5ad432e14accc3 (diff)
more hover
Diffstat (limited to 'ted.h')
-rw-r--r--ted.h12
1 files changed, 11 insertions, 1 deletions
diff --git a/ted.h b/ted.h
index 53d9697..f1748b0 100644
--- a/ted.h
+++ b/ted.h
@@ -447,6 +447,15 @@ typedef struct {
Signature signatures[SIGNATURE_HELP_MAX];
} SignatureHelp;
+typedef struct {
+ // is some hover info being displayed?
+ bool open;
+ // amount of time user has been hovering cursor for
+ double time;
+ // text to display
+ char *text;
+} Hover;
+
typedef struct Ted {
struct LSP *lsps[TED_LSP_MAX + 1];
@@ -493,7 +502,6 @@ typedef struct Ted {
bool find; // is the find or find+replace menu open?
bool replace; // is the find+replace menu open?
bool find_regex, find_case_sensitive; // find options
- SignatureHelp signature_help;
u32 find_flags; // flags used last time search term was compiled
pcre2_code *find_code;
pcre2_match_data *find_match_data;
@@ -503,6 +511,8 @@ typedef struct Ted {
bool build_shown; // are we showing the build output?
bool building; // is the build process running?
Autocomplete autocomplete;
+ SignatureHelp signature_help;
+ Hover hover;
FILE *log;