From a1e089babbd793cd72ccf4653cf78c5f1e3d8851 Mon Sep 17 00:00:00 2001 From: Ade Attwood Date: Wed, 10 Apr 2024 19:12:59 +0100 Subject: [PATCH] feat(vim): bump the priority of snippets in completion I want the snippets to be the first thing in the completion when they are available. --- site-modules/core/files/vim/plugin/completion.lua | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/site-modules/core/files/vim/plugin/completion.lua b/site-modules/core/files/vim/plugin/completion.lua index 78b9d6c..be33def 100644 --- a/site-modules/core/files/vim/plugin/completion.lua +++ b/site-modules/core/files/vim/plugin/completion.lua @@ -66,7 +66,7 @@ cmp.setup { end, { "i", "s" }), }, sources = { - { name = "luasnip" }, + { name = "luasnip", priority = 1000 }, { name = "copilot" }, { name = "nvim_lsp" }, { name = "buffer" },