From eaf23496e96949ed979b07fe0395b5e68c17d1c9 Mon Sep 17 00:00:00 2001 From: Dinesh Salunke Date: Mon, 3 Feb 2025 12:16:46 +0530 Subject: [PATCH] refactor: remove the luasnip from nvim cmp --- lua/plugins/nvim-cmp.lua | 6 +----- 1 file changed, 1 insertion(+), 5 deletions(-) diff --git a/lua/plugins/nvim-cmp.lua b/lua/plugins/nvim-cmp.lua index c5d9c20..07fb5f5 100644 --- a/lua/plugins/nvim-cmp.lua +++ b/lua/plugins/nvim-cmp.lua @@ -63,7 +63,7 @@ return { }, view = { docs = { - auto_open = false, + auto_open = true, }, }, mapping = cmp.mapping.preset.insert({ @@ -75,8 +75,6 @@ return { [""] = cmp.mapping(function(fallback) if cmp.visible() then cmp.select_next_item() - elseif luasnip.expand_or_jumpable() then - luasnip.expand_or_jump() else fallback() end @@ -84,8 +82,6 @@ return { [""] = cmp.mapping(function(fallback) if cmp.visible() then cmp.select_prev_item() - elseif luasnip.expand_or_jumpable(-1) then - luasnip.jump(-1) else fallback() end