From c5922f155d569ea02c8f8102ad79347833f91ef7 Mon Sep 17 00:00:00 2001 From: Nick Burt Date: Tue, 19 Dec 2023 13:50:30 -0600 Subject: [PATCH] remap autocomplete navitgation --- init.lua | 20 +------------------- 1 file changed, 1 insertion(+), 19 deletions(-) diff --git a/init.lua b/init.lua index a1bc1aaf..c8af5b77 100644 --- a/init.lua +++ b/init.lua @@ -536,28 +536,10 @@ cmp.setup { [''] = cmp.mapping.scroll_docs(-4), [''] = cmp.mapping.scroll_docs(4), [''] = cmp.mapping.complete {}, - [''] = cmp.mapping.confirm { + [''] = cmp.mapping.confirm { behavior = cmp.ConfirmBehavior.Replace, select = true, }, - [''] = cmp.mapping(function(fallback) - if cmp.visible() then - cmp.select_next_item() - elseif luasnip.expand_or_locally_jumpable() then - luasnip.expand_or_jump() - else - fallback() - end - end, { 'i', 's' }), - [''] = cmp.mapping(function(fallback) - if cmp.visible() then - cmp.select_prev_item() - elseif luasnip.locally_jumpable(-1) then - luasnip.jump(-1) - else - fallback() - end - end, { 'i', 's' }), }, sources = { { name = 'nvim_lsp' },