aboutsummaryrefslogtreecommitdiff
path: root/src/nvim/auevents.lua
diff options
context:
space:
mode:
authorThomas Vigouroux <tomvig38@gmail.com>2021-08-17 15:56:37 +0200
committerAxel Dahlberg <git@valleymnt.com>2021-12-18 10:54:26 +0100
commit8a4e26c6fe7530a0e24268cd373f0d4e53fe81e1 (patch)
tree9b3178c7db16ab4e06327774cb5d47185f23f6cc /src/nvim/auevents.lua
parentb1757e1c29d07c7958c62427e19e85916670049d (diff)
downloadrneovim-8a4e26c6fe7530a0e24268cd373f0d4e53fe81e1.tar.gz
rneovim-8a4e26c6fe7530a0e24268cd373f0d4e53fe81e1.tar.bz2
rneovim-8a4e26c6fe7530a0e24268cd373f0d4e53fe81e1.zip
feat(autocmd): add Recording autocmds
feat(eval): add reg_recorded() This function is used the get the last recorded register. style(Recording): rename handler to match suggestions fix(RecordingLeave): send autocommand earlier This makes the autocommand fire just before setting reg_recorded to reg_recording, this way we clearly show that we are actually just before actually quitting the recording mode.
Diffstat (limited to 'src/nvim/auevents.lua')
-rw-r--r--src/nvim/auevents.lua4
1 files changed, 4 insertions, 0 deletions
diff --git a/src/nvim/auevents.lua b/src/nvim/auevents.lua
index 6227b08b26..761e385a73 100644
--- a/src/nvim/auevents.lua
+++ b/src/nvim/auevents.lua
@@ -75,6 +75,8 @@ return {
'QuickFixCmdPost', -- after :make, :grep etc.
'QuickFixCmdPre', -- before :make, :grep etc.
'QuitPre', -- before :quit
+ 'RecordingEnter', -- when starting to record a macro
+ 'RecordingLeave', -- when stopping to record a macro
'RemoteReply', -- upon string reception from a remote vim
'SearchWrapped', -- after the search wrapped around
'SessionLoadPost', -- after loading a session file
@@ -131,6 +133,8 @@ return {
BufModifiedSet=true,
DiagnosticChanged=true,
DirChanged=true,
+ RecordingEnter=true,
+ RecordingLeave=true,
Signal=true,
TabClosed=true,
TabNew=true,