Update config/nvim/lua/plugins/lsp.lua

This commit is contained in:
Matthew Fisher 2024-08-28 14:13:24 -05:00
parent 500b95842c
commit 2e21ca13c7

View File

@ -39,7 +39,7 @@ cmp.setup({
['<CR>'] = cmp.mapping.confirm({select = false}),
['<C-q>'] = cmp.mapping.abort(),
['<Up>'] = cmp.mapping.select_prev_item({behavior = 'select'}),
['<Down>'] = cmp.mapping.select_next_item({behavior = 'select'}),
['<TAB>'] = cmp.mapping.select_next_item({behavior = 'select'}),
['<C-p>'] = cmp.mapping(function()
if cmp.visible() then
cmp.select_prev_item({behavior = 'insert'})