From 574ae4db3bb3cd0962bf31c6932f3c526fa2b78d Mon Sep 17 00:00:00 2001 From: S4NKALP Date: Fri, 17 Oct 2025 11:33:49 +0545 Subject: [PATCH] feat(core): add notifications for macro recording start and stop --- lua/core/autocmd.lua | 23 +++++++++++++++++++++++ 1 file changed, 23 insertions(+) diff --git a/lua/core/autocmd.lua b/lua/core/autocmd.lua index 6b610ad..682ffb0 100644 --- a/lua/core/autocmd.lua +++ b/lua/core/autocmd.lua @@ -127,3 +127,26 @@ vim.api.nvim_create_user_command('WriteNoFormat', function() -- Re-enable the autoformat autocmd enable_autoformat() end, {}) + +-- Macro recording notifications +vim.api.nvim_create_autocmd('RecordingEnter', { + callback = function() + vim.notify('Macro recording started', vim.log.levels.INFO, { + title = 'Macro', + timeout = 2000, + }) + -- Print to command line for debugging + vim.cmd("echo 'Recording macro...'") + end, +}) + +vim.api.nvim_create_autocmd('RecordingLeave', { + callback = function() + vim.notify('Macro recording stopped', vim.log.levels.INFO, { + title = 'Macro', + timeout = 2000, + }) + -- Print to command line for debugging + vim.cmd("echo 'Macro recording stopped'") + end, +})