File tree Expand file tree Collapse file tree 1 file changed +7
-0
lines changed Expand file tree Collapse file tree 1 file changed +7
-0
lines changed Original file line number Diff line number Diff line change @@ -608,6 +608,11 @@ function M._create_commands()
608
608
local current_ft = (vim .bo and vim .bo .filetype ) or " "
609
609
local current_bufname = (vim .api and vim .api .nvim_buf_get_name and vim .api .nvim_buf_get_name (0 )) or " "
610
610
611
+ -- Debug logging for tree buffer detection
612
+ logger .debug (" command" , " Tree buffer detection:" )
613
+ logger .debug (" command" , " current_ft: '" .. tostring (current_ft ) .. " '" )
614
+ logger .debug (" command" , " current_bufname: '" .. tostring (current_bufname ) .. " '" )
615
+
611
616
local is_tree_buffer = current_ft == " NvimTree"
612
617
or current_ft == " neo-tree"
613
618
or current_ft == " oil"
@@ -616,6 +621,8 @@ function M._create_commands()
616
621
or string.match (current_bufname , " NvimTree" )
617
622
or string.match (current_bufname , " minifiles://" )
618
623
624
+ logger .debug (" command" , " is_tree_buffer: " .. tostring (is_tree_buffer ))
625
+
619
626
if is_tree_buffer then
620
627
local integrations = require (" claudecode.integrations" )
621
628
local files , error = integrations .get_selected_files_from_tree ()
You can’t perform that action at this time.
0 commit comments