feat: added recording to lualine output

This commit is contained in:
Ceferino Patino 2025-07-05 13:18:49 -05:00
commit 812bf4041b
Signed by: c4patino
SSH key fingerprint: SHA256:Wu+cU1t+7zVT9wzew/4meNmeulo66NzMqc22MdDBgXI

View file

@ -1,36 +1,45 @@
return {
"nvim-lualine/lualine.nvim",
dependencies = { "nvim-tree/nvim-web-devicons" },
event = "VeryLazy",
config = function()
require("lualine").setup({
options = {
globalstatus = true,
always_divide_middle = true,
theme = "auto",
ignore_focus = { "nvim-tree" },
component_separators = {
left = "|",
right = "|",
},
},
extensions = { "fzf" },
sections = {
lualine_a = { "mode" },
lualine_b = {
{ "branch", icon = "", icons_enabled = true },
{ "diff" },
{ "diagnostics" },
},
lualine_c = { "filename" },
lualine_x = { "filetype" },
lualine_y = { "location" },
lualine_z = {
function()
return "" .. os.date("%R")
end,
},
},
})
end,
"nvim-lualine/lualine.nvim",
dependencies = { "nvim-tree/nvim-web-devicons" },
event = "VeryLazy",
config = function()
require("lualine").setup({
options = {
globalstatus = true,
always_divide_middle = true,
theme = "auto",
ignore_focus = { "nvim-tree" },
component_separators = {
left = "|",
right = "|",
},
},
extensions = { "fzf" },
sections = {
lualine_a = { "mode" },
lualine_b = {
{ "branch", icon = "", icons_enabled = true },
{ "diff" },
{ "diagnostics" },
},
lualine_c = {
"filename",
function()
local rec = vim.fn.reg_recording()
if rec ~= "" then
return " @" .. rec
end
return ""
end,
},
lualine_x = { "filetype" },
lualine_y = { "location" },
lualine_z = {
function()
return "" .. os.date("%R")
end,
},
},
})
end,
}