Skip to content

Commit

Permalink
Fixed nvim-cmp tab binding.
Browse files Browse the repository at this point in the history
  • Loading branch information
kglundgren committed Nov 23, 2024
1 parent 1ec1f95 commit 82374d2
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions src/nvim/lua/config/mini.lua
Original file line number Diff line number Diff line change
Expand Up @@ -70,19 +70,19 @@ now(function()
['<C-e>'] = cmp.mapping.abort(),
['<CR>'] = cmp.mapping.confirm { select = true }, -- Accept currently selected item. Set `select` to `false` to only confirm explicitly selected items.
['<Tab>'] = cmp.mapping(function(fallback)
if cmp.visible then
if cmp.visible() then
cmp.select_next_item()
else
fallback()
end
end),
end, { 'i', 's' }),
['<S-Tab>'] = cmp.mapping(function(fallback)
if cmp.visible then
if cmp.visible() then
cmp.select_prev_item()
else
fallback()
end
end)
end, { 'i', 's' })
},
sources = cmp.config.sources {
{ name = 'nvim_lsp' },
Expand Down

0 comments on commit 82374d2

Please sign in to comment.