From 108c471ab536358bfd53e3f48a8d3783b0d69515 Mon Sep 17 00:00:00 2001 From: Folke Lemaitre Date: Fri, 30 Dec 2022 23:33:57 +0100 Subject: [PATCH] perf: lazy-load nvim-notify --- lua/user/plugins/ui.lua | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) diff --git a/lua/user/plugins/ui.lua b/lua/user/plugins/ui.lua index 584d8184..c7221a79 100644 --- a/lua/user/plugins/ui.lua +++ b/lua/user/plugins/ui.lua @@ -2,9 +2,11 @@ return { -- better vim.notify { "rcarriga/nvim-notify", - event = "VeryLazy", - config = function() - vim.notify = require("notify") + init = function() + vim.notify = function(...) + vim.notify = require("notify") + return vim.notify(...) + end end, },