From 7df4ce3c03f2064450ff1daba2e0eeb54bb37a73 Mon Sep 17 00:00:00 2001 From: hyzen Date: Sun, 28 Jun 2026 23:10:57 +0530 Subject: [PATCH] Update: replace_snippets wait --- lua/replace_with_custom_snippets.lua | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/lua/replace_with_custom_snippets.lua b/lua/replace_with_custom_snippets.lua index 1bf4348..b3d70f4 100644 --- a/lua/replace_with_custom_snippets.lua +++ b/lua/replace_with_custom_snippets.lua @@ -76,4 +76,8 @@ local function replace_snippets() ::continue:: end end -replace_snippets() +-- Wait until lazy.nvim has finished loading plugins +vim.api.nvim_create_autocmd('User', { + pattern = 'LazyDone', + callback = replace_snippets, +})