From 41bcb301c8d5f41d161f828f731ecd08c1e1df92 Mon Sep 17 00:00:00 2001 From: Oliver Hartmann Date: Fri, 23 Jun 2023 14:27:32 +0200 Subject: [PATCH] disable tab for cmp again --- lua/plugins/cmp.lua | 8 ++------ 1 file changed, 2 insertions(+), 6 deletions(-) diff --git a/lua/plugins/cmp.lua b/lua/plugins/cmp.lua index 5fdc0c2..09496b1 100644 --- a/lua/plugins/cmp.lua +++ b/lua/plugins/cmp.lua @@ -53,9 +53,7 @@ return { s = cmp.mapping.confirm({ select = false }), }), [''] = cmp.mapping(function(fallback) - if cmp.visible() then - cmp.select_next_item() - elseif luasnip.expand_or_jumpable() then + if luasnip.expand_or_jumpable() then vim.api.nvim_feedkeys(t('luasnip-expand-or-jump'), '', true) else fallback() @@ -65,9 +63,7 @@ return { 's', }), [''] = cmp.mapping(function(fallback) - if cmp.visible() then - cmp.select_prev_item() - elseif luasnip.jumpable(-1) then + if luasnip.jumpable(-1) then vim.api.nvim_feedkeys(t('luasnip-jump-prev'), '', true) else fallback()