From 74063135d838b0ed9fe1a8d0e777c8cfe83ae28f Mon Sep 17 00:00:00 2001 From: Folke Lemaitre Date: Tue, 10 Jan 2023 14:15:48 +0100 Subject: [PATCH] feat(notify): lazy-load nvim-notify to show proper notifs before Noice loads --- lua/lazyvim/plugins/ui.lua | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/lua/lazyvim/plugins/ui.lua b/lua/lazyvim/plugins/ui.lua index feb6d6fc..bacf4d77 100644 --- a/lua/lazyvim/plugins/ui.lua +++ b/lua/lazyvim/plugins/ui.lua @@ -20,6 +20,12 @@ return { return math.floor(vim.o.columns * 0.75) end, }, + init = function() + -- lazy-load notify here. Will be overriden by Noice when it loads + vim.notify = function(...) + return require("notify").notify(...) + end + end, }, -- better vim.ui