completions: show lsp result first

This commit is contained in:
kalmenn 2024-02-06 14:39:07 +01:00
parent 1fc2c4cff1
commit 213815a2ce
Signed by: kalmenn
GPG key ID: F500055C44BC3834

View file

@ -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" },
}), }),
}) })