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 '')