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 (