docs: fix sample code for cmp.config.sources (#942)

This commit is contained in:
nskhei
2022-04-28 14:10:25 +09:00
committed by GitHub
parent 433af3dffc
commit 74284cffb6

View File

@@ -599,10 +599,11 @@ cmp.config.sources~
The sources are grouped in the order you specify, and the groups are displayed in a fallback, like chain completion.
>
cmp.setup {
window = {
completion = cmp.config.window.bordered(),
documentation = cmp.config.window.bordered(),
}
sources = cmp.config.sources({
{ name = 'nvim_lsp' },
}, {
{ name = 'buffer' },
})
}
<
cmp.config.window~