summaryrefslogtreecommitdiff
path: root/main.c
diff options
context:
space:
mode:
authorpommicket <pommicket@gmail.com>2022-12-30 23:39:27 -0500
committerpommicket <pommicket@gmail.com>2022-12-30 23:39:27 -0500
commit25f6cd6f5ffb9ff34d9e22c38e9d72cdadce2dc9 (patch)
tree7f731a4098bd08fb0a301b3dfad7159a1a589374 /main.c
parent43bd0763959ecd8f8a835d09190b55ba6fab7d67 (diff)
basic find usages
Diffstat (limited to 'main.c')
-rw-r--r--main.c7
1 files changed, 5 insertions, 2 deletions
diff --git a/main.c b/main.c
index dca6fb5..38d4e4b 100644
--- a/main.c
+++ b/main.c
@@ -1,8 +1,8 @@
/*
@TODO:
-- find usages (textDocument/references)
-- different highlight colors
+- show line containing usage
- framerate-cap setting
+- change frame_time to a double
- highlight-enabled, and highlight-auto
- handle multiple symbols with same name in go-to-definition menu
- :go-to-cursor-definition
@@ -156,6 +156,7 @@ bool tag_goto(Ted *ted, char const *tag);
#include "ide-hover.c"
#include "ide-definitions.c"
#include "ide-highlights.c"
+#include "ide-usages.c"
#include "command.c"
#include "config.c"
#include "session.c"
@@ -920,6 +921,7 @@ int main(int argc, char **argv) {
hover_process_lsp_response(ted, r);
definitions_process_lsp_response(ted, lsp, r);
highlights_process_lsp_response(ted, r);
+ usages_process_lsp_response(ted, r);
} break;
}
lsp_message_free(&message);
@@ -1028,6 +1030,7 @@ int main(int argc, char **argv) {
hover_frame(ted, frame_dt);
definitions_frame(ted);
highlights_frame(ted);
+ usages_frame(ted);
} else {
autocomplete_close(ted);
text_utf8_anchored(font, "Press Ctrl+O to open a file or Ctrl+N to create a new one.",