config: nvim: nvim-cmp: consider all buffers as completion sources
This commit is contained in:
parent
0bcdd60bb3
commit
53f83393dc
1 changed files with 9 additions and 1 deletions
|
|
@ -32,7 +32,15 @@ cmp.setup({
|
|||
{ name = 'nvim_lsp', keyword_length = 3 },
|
||||
{ name = 'luasnip', keyword_length = 2 },
|
||||
}, {
|
||||
{ name = 'buffer', keyword_length = 3 },
|
||||
{
|
||||
name = 'buffer',
|
||||
keyword_length = 3,
|
||||
option = {
|
||||
get_bufnrs = function()
|
||||
return vim.api.nvim_list_bufs()
|
||||
end,
|
||||
},
|
||||
},
|
||||
})
|
||||
})
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue