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. The sources are grouped in the order you specify, and the groups are displayed in a fallback, like chain completion.
> >
cmp.setup { cmp.setup {
window = { sources = cmp.config.sources({
completion = cmp.config.window.bordered(), { name = 'nvim_lsp' },
documentation = cmp.config.window.bordered(), }, {
} { name = 'buffer' },
})
} }
< <
cmp.config.window~ cmp.config.window~