From 405da5f84b072ea97b69359454899f45d92d24b6 Mon Sep 17 00:00:00 2001 From: Albert Cervin Date: Wed, 22 May 2024 00:00:29 +0200 Subject: WIP LSP client This contains the start of an LSP client. Nothing (except starting the LSP server) works at the moment and the feature is disabled by default. --- src/main/bindings.c | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) (limited to 'src/main/bindings.c') diff --git a/src/main/bindings.c b/src/main/bindings.c index 7b25c7b..889c32b 100644 --- a/src/main/bindings.c +++ b/src/main/bindings.c @@ -72,6 +72,10 @@ void set_default_buffer_bindings(struct keymap *keymap) { } int32_t execute(struct command_ctx ctx, int argc, const char *argv[]) { + (void)ctx; + (void)argc; + (void)argv; + // TODO: this should be more lib-like return minibuffer_execute(); } @@ -82,7 +86,7 @@ static struct command execute_minibuffer_command = { .userdata = NULL, }; -void init_bindings() { +void init_bindings(void) { g_global_keymap = keymap_create("global", 32); g_ctrlx_map = keymap_create("c-x", 32); g_windows_keymap = keymap_create("c-x w", 32); @@ -203,7 +207,7 @@ uint32_t buffer_keymaps(struct buffer *buffer, struct keymap *keymaps[], return nkeymaps; } -void destroy_bindings() { +void destroy_bindings(void) { keymap_destroy(&g_windows_keymap); keymap_destroy(&g_global_keymap); keymap_destroy(&g_ctrlx_map); -- cgit v1.2.3