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/dged/binding.c | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) (limited to 'src/dged/binding.c') diff --git a/src/dged/binding.c b/src/dged/binding.c index 5111548..636e694 100644 --- a/src/dged/binding.c +++ b/src/dged/binding.c @@ -50,21 +50,22 @@ struct lookup_result lookup_key(struct keymap *keymaps, uint32_t nkeymaps, return (struct lookup_result){ .found = true, .type = BindingType_Command, - .command = lookup_command_by_hash(commands, binding->command), + .data.command = + lookup_command_by_hash(commands, binding->data.command), }; } case BindingType_Keymap: { return (struct lookup_result){ .found = true, .type = BindingType_Keymap, - .keymap = binding->keymap, + .data.keymap = binding->data.keymap, }; } case BindingType_DirectCommand: return (struct lookup_result){ .found = true, .type = BindingType_Command, - .command = binding->direct_command, + .data.command = binding->data.direct_command, }; } } -- cgit v1.2.3