local M = {} ---Render the macro-recording box while a macro is being recorded. ---@return string? component function M.render() local register = vim.fn.reg_recording() if register == "" then return nil end return ("%%#StatusMacro# RECORDING @%s %%*"):format(register:gsub("%%", "%%%%")) end return M