This commit is contained in:
Christian Nieves
2024-12-08 01:47:01 -06:00
parent 29bb1af1e0
commit 3c1d572ce7

View File

@ -41,8 +41,6 @@ return {
vim.opt.completeopt = { "menu", "menuone", "noselect" } vim.opt.completeopt = { "menu", "menuone", "noselect" }
local cmp = require("cmp") local cmp = require("cmp")
local luasnip = require("luasnip")
local compare = cmp.config.compare local compare = cmp.config.compare
local conditionalSources = {} local conditionalSources = {}
@ -169,8 +167,6 @@ return {
["<Tab>"] = cmp.mapping(function(fallback) ["<Tab>"] = cmp.mapping(function(fallback)
if cmp.visible() then if cmp.visible() then
cmp.select_next_item() cmp.select_next_item()
elseif luasnip.locally_jumpable(1) then
luasnip.jump(1)
else else
fallback() fallback()
end end
@ -178,8 +174,6 @@ return {
["<S-Tab>"] = cmp.mapping(function(fallback) ["<S-Tab>"] = cmp.mapping(function(fallback)
if cmp.visible() then if cmp.visible() then
cmp.select_prev_item() cmp.select_prev_item()
elseif luasnip.locally_jumpable(-1) then
luasnip.jump(-1)
else else
fallback() fallback()
end end