From 213815a2ce3e10b102b7357d805ec5deb0917257 Mon Sep 17 00:00:00 2001 From: kalmenn Date: Tue, 6 Feb 2024 14:39:07 +0100 Subject: [PATCH] completions: show lsp result first --- lua/plugins/completions.lua | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/lua/plugins/completions.lua b/lua/plugins/completions.lua index 37bfae5..cd218db 100644 --- a/lua/plugins/completions.lua +++ b/lua/plugins/completions.lua @@ -31,9 +31,8 @@ return { [""] = cmp.mapping.confirm({ select = false }), }), sources = cmp.config.sources({ - { name = "nvim_lsp" }, - { name = "luasnip" }, - }, { + { name = "nvim_lsp", priority = 2 }, + { name = "luasnip", priority = 1 }, { name = "buffer" }, }), })