From cf59c602c770c420d9f2cee02ee7d90b9e0e8b69 Mon Sep 17 00:00:00 2001 From: n3oney Date: Mon, 8 May 2023 13:40:36 +0200 Subject: [PATCH] fix: remove non-existent fallback function --- modules/completion/nvim-cmp/config.nix | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/modules/completion/nvim-cmp/config.nix b/modules/completion/nvim-cmp/config.nix index 7bdda3d4..1cc4fa46 100644 --- a/modules/completion/nvim-cmp/config.nix +++ b/modules/completion/nvim-cmp/config.nix @@ -84,7 +84,9 @@ in { elseif has_words_before() then cmp.complete() else - fallback() + local termcode = vim.api.nvim_replace_termcodes(${builtins.toJSON mappings.next.value}, true, false, true) + + vim.fn.feedkeys(termcode, 'n') end end '') @@ -157,7 +159,9 @@ in { elseif has_words_before() then cmp.complete() else - fallback() + local termcode = vim.api.nvim_replace_termcodes(${builtins.toJSON mappings.next.value}, true, false, true) + + vim.fn.feedkeys(termcode, 'n') end end '')