Skip to content

Instantly share code, notes, and snippets.

@debugloop
Created June 27, 2023 15:27
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save debugloop/64c790ac5e229b9268a27cb15ae3e06b to your computer and use it in GitHub Desktop.
Save debugloop/64c790ac5e229b9268a27cb15ae3e06b to your computer and use it in GitHub Desktop.
{
"macro-recording",
fmt = function()
local recording_register = vim.fn.reg_recording()
if recording_register == "" then
return ""
else
return "recording @" .. recording_register
end
end,
color = { fg = "orange" },
},
@debugloop
Copy link
Author

      vim.api.nvim_create_autocmd({ "RecordingEnter", "RecordingLeave" }, {
        group = vim.api.nvim_create_augroup("refresh_recording_indicator", {}),
        callback = function()
          require("lualine").refresh({ place = { "statusline" } })
        end,
      })

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment