Feat(nvim): add option for buffer completion

This commit is contained in:
Bertrand Benjamin 2023-11-05 06:44:33 +01:00
parent 3029561478
commit e43a76a132

View File

@ -25,7 +25,15 @@ return {
{ name = 'nvim_lsp' }, { name = 'nvim_lsp' },
{ name = 'vsnip' }, -- For vsnip users. { name = 'vsnip' }, -- For vsnip users.
{ name = 'path' }, { name = 'path' },
{ name = 'buffer' }, {
name = 'buffer',
option = {
keyword_length = 3,
get_bufnrs = function()
return vim.api.nvim_list_bufs()
end
}
},
}, { }, {
{ name = 'buffer' }, { name = 'buffer' },
}) })