Add macro recording info to statusline
This commit is contained in:
parent
0b83e97bcb
commit
d084949ec3
@ -6,9 +6,23 @@ spec.dependencies = {
|
|||||||
"nvim-tree/nvim-web-devicons",
|
"nvim-tree/nvim-web-devicons",
|
||||||
}
|
}
|
||||||
|
|
||||||
|
local function macro_recording()
|
||||||
|
local reg = vim.fn.reg_recording()
|
||||||
|
|
||||||
|
if reg == "" then
|
||||||
|
return ""
|
||||||
|
end
|
||||||
|
|
||||||
|
return "REC @ " .. reg
|
||||||
|
end
|
||||||
|
|
||||||
spec.config = function()
|
spec.config = function()
|
||||||
require("lualine").setup({
|
require("lualine").setup({
|
||||||
sections = {
|
sections = {
|
||||||
|
lualine_a = {
|
||||||
|
macro_recording,
|
||||||
|
"mode",
|
||||||
|
},
|
||||||
lualine_b = {
|
lualine_b = {
|
||||||
"branch",
|
"branch",
|
||||||
"diff",
|
"diff",
|
||||||
|
Loading…
Reference in New Issue
Block a user