summaryrefslogtreecommitdiff
path: root/ted.h
diff options
context:
space:
mode:
authorpommicket <pommicket@gmail.com>2022-12-30 14:57:26 -0500
committerpommicket <pommicket@gmail.com>2022-12-30 14:57:26 -0500
commit547bfbba7a1ef84d397711882a501fc4914addba (patch)
treefd702946ac77db0c828e871f4ad90ae6fe99198b /ted.h
parentf2c8a3a77fdd7f397e04edcaf5dae5e7777f03b6 (diff)
show location in definitions menu
Diffstat (limited to 'ted.h')
-rw-r--r--ted.h5
1 files changed, 4 insertions, 1 deletions
diff --git a/ted.h b/ted.h
index 22a8362..8132e1e 100644
--- a/ted.h
+++ b/ted.h
@@ -272,7 +272,9 @@ ENUM_U16 {
} ENUM_U16_END(Menu);
typedef struct {
- char const *name;
+ const char *name;
+ // if not NULL, this will show on the right side of the entry.
+ const char *detail;
u32 color;
} SelectorEntry;
@@ -415,6 +417,7 @@ typedef struct {
typedef struct {
char *name;
+ char *detail;
u32 color;
bool from_lsp;
LSPDocumentPosition position; // only set if from_lsp = true