diff options
| author | Jackson Moore <jacksonmoore@tuta.io> | 2026-09-04 14:13:43 +0200 |
|---|---|---|
| committer | Jackson Moore <jacksonmoore@tuta.io> | 2026-09-04 14:13:43 +0200 |
| commit | 294d7efdf06efbaab0c68e0a2cf01185622c9241 (patch) | |
| tree | 04d0c7cbbffe1263530b9ae22e69bca4989bb186 | |
| parent | 0e9c9ec0ccef14a0f0681bbc6de2e4d0e4c74da2 (diff) | |
Fix window capability contract
| -rw-r--r-- | lua/clever_f/capabilities.lua | 2 | ||||
| -rw-r--r-- | tests/run.lua | 1 |
2 files changed, 2 insertions, 1 deletions
diff --git a/lua/clever_f/capabilities.lua b/lua/clever_f/capabilities.lua index 79013b5..ff92f8f 100644 --- a/lua/clever_f/capabilities.lua +++ b/lua/clever_f/capabilities.lua @@ -2,7 +2,7 @@ local M = {} M.read_methods = { text = { "read_text" }, - buffer = { "read_buffer" }, + buffer = { "read_buffer", "read_window" }, cursor = { "read_cursor" }, mode = { "read_mode", "read_pending_operator" }, selection = { "read_selection" }, diff --git a/tests/run.lua b/tests/run.lua index 728024e..fb97146 100644 --- a/tests/run.lua +++ b/tests/run.lua @@ -365,6 +365,7 @@ test("Capability contract reports every semantic method", function() same(0, #capabilities.missing_methods(host)) local required = capabilities.required_methods() truthy(#required >= 30) + truthy(vim.tbl_contains(required, "read_window")) local incomplete = {} local missing = capabilities.missing_methods(incomplete) |
