You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: README.md
+81Lines changed: 81 additions & 0 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -573,6 +573,87 @@ Provides convenient Claude interaction history management and access for enhance
573
573
574
574
> **Disclaimer**: These community extensions are developed and maintained by independent contributors. The authors and their extensions are not affiliated with Coder. Use at your own discretion and refer to their respective repositories for installation instructions, documentation, and support.
575
575
576
+
## Auto-Save Plugin Issues
577
+
578
+
Using auto-save plugins can cause diff windows opened by Claude to immediately accept without waiting for input. You can avoid this using a custom condition:
579
+
580
+
<details>
581
+
<summary>Pocco81/auto-save.nvim</summary>
582
+
583
+
```lua
584
+
opts= {
585
+
-- ... other options
586
+
condition=function(buf)
587
+
localfn=vim.fn
588
+
localutils=require("auto-save.utils.data")
589
+
590
+
-- First check the default conditions
591
+
ifnot (fn.getbufvar(buf, "&modifiable") ==1andutils.not_in(fn.getbufvar(buf, "&filetype"), {})) then
592
+
returnfalse
593
+
end
594
+
595
+
-- Exclude claudecode diff buffers by buffer name patterns
596
+
localbufname=vim.api.nvim_buf_get_name(buf)
597
+
ifbufname:match("%(proposed%)") or
598
+
bufname:match("%(NEW FILE %- proposed%)") or
599
+
bufname:match("%(New%)") then
600
+
returnfalse
601
+
end
602
+
603
+
-- Exclude by buffer variables (claudecode sets these)
604
+
ifvim.b[buf].claudecode_diff_tab_nameor
605
+
vim.b[buf].claudecode_diff_new_winor
606
+
vim.b[buf].claudecode_diff_target_winthen
607
+
returnfalse
608
+
end
609
+
610
+
-- Exclude by buffer type (claudecode diff buffers use "acwrite")
611
+
localbuftype=fn.getbufvar(buf, "&buftype")
612
+
ifbuftype=="acwrite" then
613
+
returnfalse
614
+
end
615
+
616
+
returntrue-- Safe to auto-save
617
+
end,
618
+
},
619
+
```
620
+
621
+
</details>
622
+
<details>
623
+
<summary>okuuva/auto-save.nvim</summary>
624
+
625
+
```lua
626
+
opts= {
627
+
-- ... other options
628
+
condition=function(buf)
629
+
-- Exclude claudecode diff buffers by buffer name patterns
630
+
localbufname=vim.api.nvim_buf_get_name(buf)
631
+
ifbufname:match('%(proposed%)') orbufname:match('%(NEW FILE %- proposed%)') orbufname:match('%(New%)') then
632
+
returnfalse
633
+
end
634
+
635
+
-- Exclude by buffer variables (claudecode sets these)
636
+
if
637
+
vim.b[buf].claudecode_diff_tab_name
638
+
orvim.b[buf].claudecode_diff_new_win
639
+
orvim.b[buf].claudecode_diff_target_win
640
+
then
641
+
returnfalse
642
+
end
643
+
644
+
-- Exclude by buffer type (claudecode diff buffers use "acwrite")
645
+
localbuftype=vim.fn.getbufvar(buf, '&buftype')
646
+
ifbuftype=='acwrite' then
647
+
returnfalse
648
+
end
649
+
650
+
returntrue-- Safe to auto-save
651
+
end,
652
+
},
653
+
```
654
+
655
+
</details>
656
+
576
657
## Troubleshooting
577
658
578
659
-**Claude not connecting?** Check `:ClaudeCodeStatus` and verify lock file exists in `~/.claude/ide/` (or `$CLAUDE_CONFIG_DIR/ide/` if `CLAUDE_CONFIG_DIR` is set)
0 commit comments