diff --git a/lua/ui/lualine.lua b/lua/ui/lualine.lua index 110231a..fb2e149 100644 --- a/lua/ui/lualine.lua +++ b/lua/ui/lualine.lua @@ -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, }