|
|
Add nvim-notify.hook.sh, a generic hook that tells the Neovim instance
owning the terminal ($NVIM) that a state dump is available, by firing a
`User Claude<Event>` autocmd whose `data` is the dump's basename.
The signal is derived from the payload, so the one script serves every
event it is registered against: `hook_event_name` becomes the pattern,
and `tool_use_id` (else `session_id-source`) becomes the `data`, matching
how the dump hooks name their files. It is a no-op outside a Neovim
terminal or without an identifier, and the remote call is backgrounded
with a timeout so a slow or absent editor never blocks a tool call.
Register it after each dump hook on SessionStart, PreToolUse (Bash),
PostToolUse (Bash), and PostToolUseFailure (Bash).
|