summaryrefslogtreecommitdiff
path: root/ide-autocomplete.c
diff options
context:
space:
mode:
authorpommicket <pommicket@gmail.com>2023-01-02 13:36:38 -0500
committerpommicket <pommicket@gmail.com>2023-01-02 13:36:38 -0500
commitc0d0117a963cf8e4dfb28b919087d8a8ecbbca6e (patch)
tree0c412921f82f141cf733e8de4b4b02152446dba5 /ide-autocomplete.c
parent1dc24e79ec7cf80e06b9c4e7cc55e18857b624c1 (diff)
fix up restructuring
Diffstat (limited to 'ide-autocomplete.c')
-rw-r--r--ide-autocomplete.c8
1 files changed, 3 insertions, 5 deletions
diff --git a/ide-autocomplete.c b/ide-autocomplete.c
index ed9617d..a9056f0 100644
--- a/ide-autocomplete.c
+++ b/ide-autocomplete.c
@@ -240,7 +240,7 @@ static SymbolKind lsp_completion_kind_to_ted(LSPCompletionKind kind) {
}
-static void autocomplete_process_lsp_response(Ted *ted, const LSPResponse *response) {
+void autocomplete_process_lsp_response(Ted *ted, const LSPResponse *response) {
const LSPRequest *request = &response->request;
if (request->type != LSP_REQUEST_COMPLETION)
return;
@@ -288,9 +288,7 @@ static void autocomplete_process_lsp_response(Ted *ted, const LSPResponse *respo
}
}
-// open autocomplete
-// trigger should either be a character (e.g. '.') or one of the TRIGGER_* constants.
-static void autocomplete_open(Ted *ted, uint32_t trigger) {
+void autocomplete_open(Ted *ted, uint32_t trigger) {
Autocomplete *ac = &ted->autocomplete;
if (ac->open) return;
if (!ted->active_buffer) return;
@@ -342,7 +340,7 @@ static char symbol_kind_icon(SymbolKind k) {
return ' ';
}
-static void autocomplete_frame(Ted *ted) {
+void autocomplete_frame(Ted *ted) {
Autocomplete *ac = &ted->autocomplete;
if (!ac->open) return;