refactor(nvim): return cmp sources as part of standard sources
This commit is contained in:
parent
5c520cf48d
commit
6a45f1f198
@ -129,7 +129,7 @@ return {
|
|||||||
{ name = "spell", keyword_length = 2 },
|
{ name = "spell", keyword_length = 2 },
|
||||||
}
|
}
|
||||||
|
|
||||||
return vim.tbl_deep_extend("force", default_sources, sources)
|
return cmp.config.sources(vim.tbl_deep_extend("force", default_sources, sources))
|
||||||
end
|
end
|
||||||
cmp.setup({
|
cmp.setup({
|
||||||
formatting = {
|
formatting = {
|
||||||
@ -305,7 +305,7 @@ return {
|
|||||||
end
|
end
|
||||||
end, { "i", "s" }),
|
end, { "i", "s" }),
|
||||||
},
|
},
|
||||||
sources = cmp.config.sources(standard_sources()),
|
sources = standard_sources(),
|
||||||
sorting = {
|
sorting = {
|
||||||
comparators = {
|
comparators = {
|
||||||
compare.score,
|
compare.score,
|
||||||
|
Loading…
Reference in New Issue
Block a user