forked from dineshsalunke/nvim-config
refactor: remove the luasnip from nvim cmp
This commit is contained in:
parent
629d950126
commit
eaf23496e9
@ -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
|
||||
|
Loading…
x
Reference in New Issue
Block a user