refactor: remove the luasnip from nvim cmp

This commit is contained in:
Dinesh Salunke 2025-02-03 12:16:46 +05:30
parent 629d950126
commit eaf23496e9

View File

@ -63,7 +63,7 @@ return {
},
view = {
docs = {
auto_open = false,
auto_open = true,
},
},
mapping = cmp.mapping.preset.insert({
@ -75,8 +75,6 @@ return {
["<Tab>"] = 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 {
["<S-Tab>"] = 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