From 1818f4b91098960a0981ede122886ff57ae8b607 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 7bdda3d..1cc4fa4 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 '')