docs: fix sample code for cmp.config.sources (#942)
This commit is contained in:
@@ -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~
|
||||||
|
|||||||
Reference in New Issue
Block a user