added macro indicator to lualine
This commit is contained in:
@@ -36,7 +36,18 @@ return {
|
||||
},
|
||||
},
|
||||
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_c = { "filename" },
|
||||
lualine_x = { "filetype" },
|
||||
|
||||
Reference in New Issue
Block a user