From 3253fa2c7338316cdafabb001fff65ec4075f2da Mon Sep 17 00:00:00 2001 From: natsukium Date: Sun, 12 Jan 2025 10:49:44 +0900 Subject: [PATCH] fix(neovim): load copilot.lua before blink-cmp-copilot --- pkgs/neovim-with-config/lua/plugins/completion.lua | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/pkgs/neovim-with-config/lua/plugins/completion.lua b/pkgs/neovim-with-config/lua/plugins/completion.lua index 5769ef35..10401f66 100644 --- a/pkgs/neovim-with-config/lua/plugins/completion.lua +++ b/pkgs/neovim-with-config/lua/plugins/completion.lua @@ -3,6 +3,7 @@ return { "blink.cmp", event = { "InsertEnter", "CmdlineEnter" }, before = function() + require("lz.n").trigger_load("copilot.lua") require("lz.n").trigger_load("blink-cmp-copilot") end, after = function() @@ -37,7 +38,6 @@ return { }, { "copilot.lua", - event = "InsertEnter", after = function() require("copilot").setup({ suggestion = { enabled = false },