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(