From 297b7fe350e6d1ba2019720801d4594a2d600b07 Mon Sep 17 00:00:00 2001 From: Joe Hayes Date: Tue, 14 Nov 2023 10:12:03 -0500 Subject: [PATCH] fix rebase errors --- init.lua | 84 +++++++++++++++++++++++++------------------------------- 1 file changed, 37 insertions(+), 47 deletions(-) diff --git a/init.lua b/init.lua index 20f817c9..2fd33052 100644 --- a/init.lua +++ b/init.lua @@ -657,54 +657,44 @@ cmp.setup { completeopt = 'menu,menuone,noinsert' }, mapping = cmp.mapping.preset.insert { - [''] = cmp.mapping.select_next_item(), - [''] = cmp.mapping.select_prev_item(), - [''] = cmp.mapping.scroll_docs(-4), - [''] = cmp.mapping.scroll_docs(4), - [''] = cmp.mapping.complete {}, - [''] = cmp.mapping.confirm { - behavior = cmp.ConfirmBehavior.Replace, - select = true, + [""] = cmp.mapping.select_next_item(), + [""] = cmp.mapping.select_prev_item(), + [""] = cmp.mapping.scroll_docs(-4), + [""] = cmp.mapping.scroll_docs(4), + [""] = cmp.mapping.complete {}, + [""] = cmp.mapping.confirm { + behavior = cmp.ConfirmBehavior.Replace, + select = true }, - mapping = cmp.mapping.preset.insert { - [""] = cmp.mapping.select_next_item(), - [""] = cmp.mapping.select_prev_item(), - [""] = cmp.mapping.scroll_docs(-4), - [""] = cmp.mapping.scroll_docs(4), - [""] = cmp.mapping.complete {}, - [""] = 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"}, - {name = "luasnip"} - } + [""] = 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"}, + {name = "luasnip"} + } } require("focus").setup()