Skip to content

Commit f9a8ab7

Browse files
committed
refactor: simplify diff system to use only native Neovim diff, removing diffview provider complexity
Change-Id: Ic02930165f9591657a8a7ea8beeb918cec7d38ac Signed-off-by: Thomas Kosiewski <[email protected]>
1 parent 900df40 commit f9a8ab7

File tree

15 files changed

+666
-1193
lines changed

15 files changed

+666
-1193
lines changed

β€ŽARCHITECTURE.md

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -116,7 +116,6 @@ The plugin provides a configurable diff system that Claude can use to show file
116116

117117
- `native` - Uses Neovim's built-in diff mode with `diffthis`
118118
- `auto` - Automatically selects the best available provider
119-
- `diffview` - (Future) Integration with diffview.nvim plugin
120119

121120
**Diff Configuration:**
122121

@@ -142,7 +141,7 @@ diff_opts = {
142141
**Diff Flow:**
143142

144143
```
145-
Claude Request ──► openDiff MCP tool ──► diff.lua provider
144+
Claude Request ──► openDiff MCP tool ──► diff.lua
146145
β”‚
147146
β–Ό
148147
β”Œβ”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”
@@ -255,7 +254,7 @@ lua/claudecode/
255254
β”œβ”€β”€ lockfile.lua # Lock file management
256255
β”œβ”€β”€ tools/
257256
β”‚ └── init.lua # MCP tool registration, schema management, and dispatch
258-
β”œβ”€β”€ diff.lua # Diff provider system (native Neovim diff support)
257+
β”œβ”€β”€ diff.lua # Native Neovim diff support
259258
β”œβ”€β”€ selection.lua # Selection tracking and notifications
260259
β”œβ”€β”€ terminal.lua # Terminal management (Snacks.nvim or native)
261260
└── meta/

β€ŽREADME.md

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -173,8 +173,7 @@ require("claudecode").setup({
173173
-- to the Claude terminal. (Default: 50)
174174
visual_demotion_delay_ms = 50,
175175

176-
-- Diff provider configuration for openDiff MCP tool
177-
diff_provider = "auto", -- "auto", "native", or "diffview" (when implemented)
176+
-- Diff configuration for openDiff MCP tool
178177
diff_opts = {
179178
auto_close_on_accept = true, -- Auto-close diff when accepting changes
180179
show_diff_stats = true, -- Show diff statistics

0 commit comments

Comments
Β (0)