From 1e3cfc691f7faf24ca819770754056eb13a8f7ad Mon Sep 17 00:00:00 2001 From: shadmansaleh <13149513+shadmansaleh@users.noreply.github.com> Date: Mon, 7 Mar 2022 18:10:32 +0600 Subject: [PATCH] fix: persistent notices getting wrongly triggered --- lua/lualine/utils/notices.lua | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lua/lualine/utils/notices.lua b/lua/lualine/utils/notices.lua index a02309f..708016f 100644 --- a/lua/lualine/utils/notices.lua +++ b/lua/lualine/utils/notices.lua @@ -29,7 +29,7 @@ end ---show setup :LuaLineNotices and show notification about error when there ---are notices available function M.notice_message_startup() - if #notices > 0 or #persistent_notices then + if #notices > 0 or #persistent_notices > 0 then vim.cmd('command! -nargs=0 LualineNotices lua require"lualine.utils.notices".show_notices()') vim.schedule(function() vim.notify(