fixed type error in cmp mappings
This commit is contained in:
@@ -130,8 +130,18 @@ local function packer_startup(use)
|
|||||||
|
|
||||||
cmp.setup{
|
cmp.setup{
|
||||||
mapping = {
|
mapping = {
|
||||||
[keymap.autocomplete_abort] = cmp.mapping.abort(),
|
[keymap.autocomplete_abort] = cmp.mapping(
|
||||||
[keymap.autocomplete_confirm] = function(_) cmp.confirm{ select = true } end,
|
function (_)
|
||||||
|
cmp.mapping.abort()
|
||||||
|
end,
|
||||||
|
{ "i", "s" }
|
||||||
|
),
|
||||||
|
[keymap.autocomplete_confirm] = cmp.mapping(
|
||||||
|
function (_)
|
||||||
|
cmp.confirm{ select = true }
|
||||||
|
end,
|
||||||
|
{ "i", "s" }
|
||||||
|
),
|
||||||
[keymap.jump_backward_in_snippet] = cmp.mapping(
|
[keymap.jump_backward_in_snippet] = cmp.mapping(
|
||||||
function (_)
|
function (_)
|
||||||
if snippy.can_jump(-1) then
|
if snippy.can_jump(-1) then
|
||||||
|
|||||||
Reference in New Issue
Block a user