Skip to content

Commit

Permalink
feat!: fallback to next keymap when menu not shown for select_next/prev
Browse files Browse the repository at this point in the history
Related to #1336
  • Loading branch information
Saghen committed Feb 27, 2025
1 parent 2c8e4c7 commit ffebcd2
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions lua/blink/cmp/init.lua
Original file line number Diff line number Diff line change
Expand Up @@ -174,15 +174,15 @@ end
--- Select the previous completion item
--- @param opts? blink.cmp.CompletionListSelectOpts
function cmp.select_prev(opts)
if not cmp.is_visible() then return end
if not cmp.is_menu_visible() then return end
vim.schedule(function() require('blink.cmp.completion.list').select_prev(opts) end)
return true
end

--- Select the next completion item
--- @param opts? blink.cmp.CompletionListSelectOpts
function cmp.select_next(opts)
if not cmp.is_visible() then return end
if not cmp.is_menu_visible() then return end
vim.schedule(function() require('blink.cmp.completion.list').select_next(opts) end)
return true
end
Expand Down

0 comments on commit ffebcd2

Please sign in to comment.