feat: added recording to lualine output
This commit is contained in:
parent
181c8eec02
commit
812bf4041b
1 changed files with 43 additions and 34 deletions
|
|
@ -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,
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue