From 7ea500c2b092d9cc5a3e3cdd9185d2ed99493f6e Mon Sep 17 00:00:00 2001 From: zolinthecow Date: Wed, 9 Jul 2025 17:00:41 -0700 Subject: [PATCH] claude-pre-edit-1752105641 --- lua/nvim-claude/hooks.lua | 5 +++++ 1 file changed, 5 insertions(+) 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