Remove unused core arguments in LuaSnip example (#42)
This commit is contained in:
committed by
GitHub
parent
f12fd73f11
commit
8ad9cf0c88
@@ -143,7 +143,7 @@ local luasnip = require'luasnip'
|
|||||||
local cmp = require'cmp'
|
local cmp = require'cmp'
|
||||||
cmp.setup {
|
cmp.setup {
|
||||||
mapping = {
|
mapping = {
|
||||||
['<Tab>'] = cmp.mapping.mode({ 'i', 's' }, function(core, fallback)
|
['<Tab>'] = cmp.mapping.mode({ 'i', 's' }, function(_, fallback)
|
||||||
if vim.fn.pumvisible() == 1 then
|
if vim.fn.pumvisible() == 1 then
|
||||||
vim.fn.feedkeys(vim.api.nvim_replace_termcodes('<C-n>', true, true, true), 'n')
|
vim.fn.feedkeys(vim.api.nvim_replace_termcodes('<C-n>', true, true, true), 'n')
|
||||||
elseif luasnip.expand_or_jumpable() then
|
elseif luasnip.expand_or_jumpable() then
|
||||||
@@ -152,7 +152,7 @@ cmp.setup {
|
|||||||
fallback()
|
fallback()
|
||||||
end
|
end
|
||||||
end),
|
end),
|
||||||
['<S-Tab>'] = cmp.mapping.mode({ 'i', 's' }, function(core, fallback)
|
['<S-Tab>'] = cmp.mapping.mode({ 'i', 's' }, function(_, fallback)
|
||||||
if vim.fn.pumvisible() == 1 then
|
if vim.fn.pumvisible() == 1 then
|
||||||
vim.fn.feedkeys(vim.api.nvim_replace_termcodes('<C-p>', true, true, true), 'n')
|
vim.fn.feedkeys(vim.api.nvim_replace_termcodes('<C-p>', true, true, true), 'n')
|
||||||
elseif luasnip.jumpable(-1) then
|
elseif luasnip.jumpable(-1) then
|
||||||
@@ -346,4 +346,3 @@ end
|
|||||||
|
|
||||||
return source
|
return source
|
||||||
```
|
```
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user