completions: show lsp result first
This commit is contained in:
parent
1fc2c4cff1
commit
213815a2ce
|
@ -31,9 +31,8 @@ return {
|
||||||
["<CR>"] = cmp.mapping.confirm({ select = false }),
|
["<CR>"] = cmp.mapping.confirm({ select = false }),
|
||||||
}),
|
}),
|
||||||
sources = cmp.config.sources({
|
sources = cmp.config.sources({
|
||||||
{ name = "nvim_lsp" },
|
{ name = "nvim_lsp", priority = 2 },
|
||||||
{ name = "luasnip" },
|
{ name = "luasnip", priority = 1 },
|
||||||
}, {
|
|
||||||
{ name = "buffer" },
|
{ name = "buffer" },
|
||||||
}),
|
}),
|
||||||
})
|
})
|
||||||
|
|
Loading…
Reference in a new issue