Skip to content

Commit

Permalink
Fix #894
Browse files Browse the repository at this point in the history
  • Loading branch information
hrsh7th committed Apr 13, 2022
1 parent 0c1f37c commit dbc7229
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions lua/cmp/config/mapping.lua
Original file line number Diff line number Diff line change
@@ -1,5 +1,7 @@
local types = require('cmp.types')
local misc = require('cmp.utils.misc')
local feedkeys = require('cmp.utils.feedkeys')
local keymap = require('cmp.utils.keymap')

local mapping = setmetatable({}, {
__call = function(_, invoke, modes)
Expand Down Expand Up @@ -50,7 +52,7 @@ mapping.preset.cmdline = function(override)
if cmp.visible() then
cmp.select_next_item()
else
cmp.complete({ reason = cmp.ContextReason.Manual })
feedkeys.call(keymap.t('<C-z>'), 'n')
end
end
},
Expand All @@ -60,7 +62,7 @@ mapping.preset.cmdline = function(override)
if cmp.visible() then
cmp.select_prev_item()
else
cmp.complete({ reason = cmp.ContextReason.Manual })
feedkeys.call(keymap.t('<C-z>'), 'n')
end
end
},
Expand Down

1 comment on commit dbc7229

@axieax
Copy link

@axieax axieax commented on dbc7229 Apr 14, 2022

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@hrsh7th sorry but I just realised that the mappings for <Tab> and <S-Tab> are the same

Please sign in to comment.