complete from buffers

This commit is contained in:
Nicole Tietz-Sokolskaya 2024-02-27 11:32:58 -05:00
parent 9e9d9ccf96
commit 34b0719adb

View file

@ -45,9 +45,16 @@ cmp.setup {
end, { "i", "s" }), end, { "i", "s" }),
}, },
sources = { sources = {
{ name = 'buffer' },
{ name = 'nvim_lsp' }, { name = 'nvim_lsp' },
-- { name = 'spell' },
{ name = 'path' }, { name = 'path' },
{
name = 'buffer',
option = {
get_bufnrs = function()
return vim.api.nvim_list_bufs()
end
}
},
-- { name = 'spell' },
}, },
} }