diff --git a/lua/nvchad/configs/cmp.lua b/lua/nvchad/configs/cmp.lua index 46f8864c..3eb76975 100644 --- a/lua/nvchad/configs/cmp.lua +++ b/lua/nvchad/configs/cmp.lua @@ -85,7 +85,7 @@ local options = { if cmp.visible() then cmp.select_next_item() elseif require("luasnip").expand_or_jumpable() then - vim.fn.feedkeys(vim.api.nvim_replace_termcodes("luasnip-expand-or-jump", true, true, true), "") + require("luasnip").expand_or_jump() else fallback() end @@ -95,7 +95,7 @@ local options = { if cmp.visible() then cmp.select_prev_item() elseif require("luasnip").jumpable(-1) then - vim.fn.feedkeys(vim.api.nvim_replace_termcodes("luasnip-jump-prev", true, true, true), "") + require("luasnip").jump(-1) else fallback() end