diff --git a/lua/nvim-claude/hooks.lua b/lua/nvim-claude/hooks.lua index 954ea7b8..b1e0fe0d 100644 --- a/lua/nvim-claude/hooks.lua +++ b/lua/nvim-claude/hooks.lua @@ -10,6 +10,11 @@ end -- Pre-tool-use hook: Create a commit snapshot of the current state function M.pre_tool_use_hook() + -- Debug log to file + local log_file = io.open('/tmp/claude-hook-debug.log', 'a') + log_file:write(os.date() .. ' - Pre-hook called\n') + log_file:close() + local utils = require('nvim-claude.utils') -- Check if we're in a git repository