added macro indicator to lualine

This commit is contained in:
2026-03-21 11:28:10 +00:00
parent 86752af3e9
commit 570ab4dc51

View File

@@ -36,7 +36,18 @@ return {
}, },
}, },
sections = { sections = {
lualine_a = { "mode" }, lualine_a = {
"mode",
{
function()
local reg = vim.fn.reg_recording()
if reg == "" then
return ""
end -- not recording
return "MACRO " .. string.upper(tostring(reg))
end,
},
},
lualine_b = { "branch", "diff", "diagnostics" }, lualine_b = { "branch", "diff", "diagnostics" },
lualine_c = { "filename" }, lualine_c = { "filename" },
lualine_x = { "filetype" }, lualine_x = { "filetype" },