✨ feat(lualine): implement recorder plugin in lualine
Removes "mode" section and imnplements recorder section
This commit is contained in:
+8
-10
@@ -85,14 +85,6 @@ return {
|
|||||||
color = function() return LazyVim.ui.fg("Statement") end,
|
color = function() return LazyVim.ui.fg("Statement") end,
|
||||||
},
|
},
|
||||||
-- stylua: ignore
|
-- 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,
|
function() return " " .. require("dap").status() end,
|
||||||
cond = function() return package.loaded["dap"] and require("dap").status() ~= "" end,
|
cond = function() return package.loaded["dap"] and require("dap").status() ~= "" end,
|
||||||
@@ -124,7 +116,7 @@ return {
|
|||||||
},
|
},
|
||||||
{
|
{
|
||||||
function()
|
function()
|
||||||
return wakatime_stats.get_icon_with_text() -- Display the icon and WakaTime data together
|
return wakatime_stats.get_icon_with_text()
|
||||||
end,
|
end,
|
||||||
color = function()
|
color = function()
|
||||||
if wakatime_stats.get_total_minutes() >= 60 then
|
if wakatime_stats.get_total_minutes() >= 60 then
|
||||||
@@ -145,7 +137,7 @@ return {
|
|||||||
lualine_y = {
|
lualine_y = {
|
||||||
{
|
{
|
||||||
function()
|
function()
|
||||||
return music_stats.get_icon_with_text() -- Display the icon and current state together
|
return music_stats.get_icon_with_text()
|
||||||
end,
|
end,
|
||||||
},
|
},
|
||||||
|
|
||||||
@@ -173,6 +165,12 @@ return {
|
|||||||
},
|
},
|
||||||
},
|
},
|
||||||
lualine_z = {
|
lualine_z = {
|
||||||
|
{
|
||||||
|
require("recorder").recordingStatus,
|
||||||
|
color = "CurSearch",
|
||||||
|
separator = { left = "", right = "" },
|
||||||
|
},
|
||||||
|
|
||||||
{
|
{
|
||||||
"searchcount",
|
"searchcount",
|
||||||
color = "CurSearch",
|
color = "CurSearch",
|
||||||
|
|||||||
Reference in New Issue
Block a user