From 2b7703d85c3a1a5642dc2e11a299fb45a920df67 Mon Sep 17 00:00:00 2001 From: Price Hiller Date: Tue, 7 Feb 2023 06:09:58 -0600 Subject: [PATCH] fix(nvim): handle invalid calls to AlphaRedraw --- .../primary/config/lua/plugins/configs/alpha.lua | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/dots/.nvim-environments/primary/config/lua/plugins/configs/alpha.lua b/dots/.nvim-environments/primary/config/lua/plugins/configs/alpha.lua index c7999823..3a658fac 100644 --- a/dots/.nvim-environments/primary/config/lua/plugins/configs/alpha.lua +++ b/dots/.nvim-environments/primary/config/lua/plugins/configs/alpha.lua @@ -146,7 +146,7 @@ vim.api.nvim_create_autocmd("FileType", { 50, 1000, vim.schedule_wrap(function() - vim.cmd("AlphaRedraw") + pcall(vim.cmd, "AlphaRedraw") end) ) @@ -154,7 +154,6 @@ vim.api.nvim_create_autocmd("FileType", { buffer = 0, desc = "Shut down alpha timer", callback = function(input) - alpha_timer:close() end, }) end,