This commit is contained in:
Ray Elliott 2022-10-08 15:41:34 +01:00
parent b57d625a5d
commit b47c8bb138
1 changed files with 8 additions and 1 deletions

View File

@ -36,7 +36,14 @@ cmp.setup({
sources = { sources = {
{name = 'nvim_lsp', max_item_count = 8, keyword_length = 3}, {name = 'nvim_lsp', max_item_count = 8, keyword_length = 3},
{name = 'path'}, {name = 'path'},
{name = 'buffer', keyword_length = 4, max_item_count = 20}, {name = 'buffer',
option = {
keyword_length = 4,
max_item_count = 20,
get_bufnrs = function()
return vim.api.nvim_list_bufs()
end
}},
{name = 'ultisnips', priority_weight = 10, keyword_length = 1} {name = 'ultisnips', priority_weight = 10, keyword_length = 1}
} }
}) })