From a43e7f988abdb23ba5ab3988b700efd9e8ba96ad Mon Sep 17 00:00:00 2001 From: rootiest Date: Tue, 6 Aug 2024 02:44:08 -0400 Subject: [PATCH] =?UTF-8?q?=E2=9C=A8=20feat(lualine):=20implement=20record?= =?UTF-8?q?er=20plugin=20in=20lualine?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Removes "mode" section and imnplements recorder section --- lua/plugins/lualine.lua | 18 ++++++++---------- 1 file changed, 8 insertions(+), 10 deletions(-) diff --git a/lua/plugins/lualine.lua b/lua/plugins/lualine.lua index f71e960..7887e82 100644 --- a/lua/plugins/lualine.lua +++ b/lua/plugins/lualine.lua @@ -85,14 +85,6 @@ return { color = function() return LazyVim.ui.fg("Statement") end, }, -- stylua: ignore - { - ---@diagnostic disable-next-line: undefined-field - function() return require("noice").api.status.mode.get() end, - ---@diagnostic disable-next-line: undefined-field - cond = function() return package.loaded["noice"] and require("noice").api.status.mode.has() end, - color = function() return LazyVim.ui.fg("Constant") end, - }, - -- stylua: ignore { function() return " " .. require("dap").status() end, cond = function() return package.loaded["dap"] and require("dap").status() ~= "" end, @@ -124,7 +116,7 @@ return { }, { function() - return wakatime_stats.get_icon_with_text() -- Display the icon and WakaTime data together + return wakatime_stats.get_icon_with_text() end, color = function() if wakatime_stats.get_total_minutes() >= 60 then @@ -145,7 +137,7 @@ return { lualine_y = { { function() - return music_stats.get_icon_with_text() -- Display the icon and current state together + return music_stats.get_icon_with_text() end, }, @@ -173,6 +165,12 @@ return { }, }, lualine_z = { + { + require("recorder").recordingStatus, + color = "CurSearch", + separator = { left = "", right = "" }, + }, + { "searchcount", color = "CurSearch",