summaryrefslogtreecommitdiff
path: root/main.c
diff options
context:
space:
mode:
authorpommicket <pommicket@gmail.com>2022-12-30 22:07:03 -0500
committerpommicket <pommicket@gmail.com>2022-12-30 22:07:03 -0500
commit94ce74b998ad019e2307e4b69f006127dba775e2 (patch)
treeeee0d731cd5897f3825fb7892e5f1f670eef0a2c /main.c
parentf69275faee4cd3045389a98fefefb0c683757a5c (diff)
document highlights!
Diffstat (limited to 'main.c')
-rw-r--r--main.c6
1 files changed, 5 insertions, 1 deletions
diff --git a/main.c b/main.c
index daf483f..b1bb6e5 100644
--- a/main.c
+++ b/main.c
@@ -1,7 +1,9 @@
/*
@TODO:
+- clip highlight to buffer rect
+- different highlight colors
+- highlight-enabled, and highlight-auto
- more LSP stuff:
- - document highlight (textDocument/documentHighlight)
- find usages (textDocument/references)
- handle multiple symbols with same name in go-to-definition menu
- :go-to-cursor-definition
@@ -910,6 +912,7 @@ int main(int argc, char **argv) {
signature_help_process_lsp_response(ted, r);
hover_process_lsp_response(ted, r);
definitions_process_lsp_response(ted, lsp, r);
+ highlights_process_lsp_response(ted, r);
} break;
}
lsp_message_free(&message);
@@ -1017,6 +1020,7 @@ int main(int argc, char **argv) {
signature_help_frame(ted);
hover_frame(ted, frame_dt);
definitions_frame(ted);
+ highlights_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.",