feat(core): add notifications for macro recording start and stop

This commit is contained in:
sankalp committed 2025-10-17 11:33:49 +05:45
1 parent 43e9434876
commit 574ae4db3b
1 file changed
+23
+23
View File
@@ -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,
})