summaryrefslogtreecommitdiff
path: root/ide-autocomplete.c
diff options
context:
space:
mode:
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;