From 40a4f5ef6707db2a082fb1ac28e2a7962160ea3a Mon Sep 17 00:00:00 2001 From: Gaetan Lepage Date: Thu, 21 Mar 2024 14:17:18 +0100 Subject: [PATCH] plugins/codeium-vim: fix keymaps --- plugins/completion/codeium-vim.nix | 13 +++++++------ 1 file changed, 7 insertions(+), 6 deletions(-) diff --git a/plugins/completion/codeium-vim.nix b/plugins/completion/codeium-vim.nix index b0e3c70e..c7710c72 100644 --- a/plugins/completion/codeium-vim.nix +++ b/plugins/completion/codeium-vim.nix @@ -10,27 +10,27 @@ with lib; let clear = { default = ""; description = "Keymap for clearing current suggestion."; - command = "codeium#Clear()"; + command = "vim.fn['codeium#Clear']()"; }; next = { default = ""; description = "Keymap for cycling to the next suggestion."; - command = "codeium#CycleCompletions(1)"; + command = "vim.fn['codeium#CycleCompletions'](1)"; }; prev = { default = ""; description = "Keymap for cycling to the previous suggestion."; - command = "codeium#CycleCompletions(-1)"; + command = "vim.fn['codeium#CycleCompletions'](-1)"; }; accept = { default = ""; description = "Keymap for inserting the proposed suggestion."; - command = "codeium#Accept()"; + command = "vim.fn['codeium#Accept']()"; }; complete = { default = ""; description = "Keymap for manually triggering the suggestion."; - command = "codeium#Complete()"; + command = "vim.fn['codeium#Complete']()"; }; }; in @@ -129,7 +129,8 @@ in key = v; action = let inherit (keymapsDefinitions.${optionName}) command; - in "${command}"; + in + helpers.mkRaw "function() ${command} end"; }; keymapsList = flatten (