Skip to content

Commit 3d545cd

Browse files
docs: remove telescope/nui references, update input section for fzf-lua
1 parent 417a219 commit 3d545cd

1 file changed

Lines changed: 14 additions & 12 deletions

File tree

README.md

Lines changed: 14 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -94,7 +94,7 @@ Requires [`plenary.nvim`](https://github.com/nvim-lua/plenary.nvim).
9494
no_commands = false,
9595
highlight = 'LineNr',
9696
metrics = false,
97-
preferred_input = 'telescope', -- or 'fzf-lua'
97+
preferred_input = 'fzf-lua',
9898
}
9999
```
100100

@@ -103,7 +103,7 @@ where:
103103
- `no_commands` can be set to `true` and the commands `Pytrize` etc won't be declared.
104104
- `highlight` defines the highlighting used for the virtual text.
105105
- `metrics` when set to `true`, logs timing information via `vim.notify` after each jump-to-fixture and rename operation. Useful for understanding performance in large projects. The jump reports total time and index-build time; the rename reports total, grep, scoping (fixture resolution), and apply time.
106-
- `preferred_input` which method to query input to prefer (if it's installed), see the [Input](#input)-section below. For fixture usages, setting this to `'fzf-lua'` will display results in an [`fzf-lua`](https://github.com/ibhagwan/fzf-lua) picker instead of the quickfix list.
106+
- `preferred_input` which method to use for displaying results (if installed). Currently `'fzf-lua'` is supported — when set, fixture usages are displayed in an [`fzf-lua`](https://github.com/ibhagwan/fzf-lua) picker instead of the quickfix list. When `nil` (the default), results go to the quickfix list.
107107

108108
## Details
109109

@@ -137,13 +137,15 @@ _________________________________ test[None2-a1-b-c1-9] ________________________
137137
```
138138

139139
or similar.
140-
If you trigger to jump to the declaration of the parameters in this case `pytrize` will find all files in the cache that matches this test-case id and if there is more than one ask you which one to jump to.
141-
Currently four input methods are supported:
142-
143-
- [`fzf-lua`](https://github.com/ibhagwan/fzf-lua) — used for fixture usages when `preferred_input = 'fzf-lua'`. Results are shown in an fzf picker with preview, and you can open files with Enter, `ctrl-s` (split), `ctrl-v` (vsplit), or `ctrl-t` (tab).
144-
- [`telescope`](https://github.com/nvim-telescope/telescope.nvim)
145-
![pytrize_input_telescope](https://user-images.githubusercontent.com/23341710/145381466-42152977-f412-425d-9ddb-cc0c4dfde4fb.gif)
146-
- [`nui`](https://github.com/MunifTanjim/nui.nvim)
147-
![pytrize_input_nui](https://user-images.githubusercontent.com/23341710/145381492-5e5abec0-c8c5-468c-90ee-b854e9d57146.gif)
148-
- `inputlist` (neovim native)
149-
![pytrize_input_builtin](https://user-images.githubusercontent.com/23341710/145381515-4afb6d1b-e6f5-4c55-bfc8-99d086f0f3b2.gif)
140+
If you trigger to jump to the declaration of the parameters in this case `pytrize` will find all files in the cache that matches this test-case id and if there is more than one ask you which one to jump to (via `vim.ui.select`).
141+
142+
### fzf-lua
143+
144+
When `preferred_input = 'fzf-lua'` is set and [`fzf-lua`](https://github.com/ibhagwan/fzf-lua) is installed, fixture usages (`PytrizeFixtureUsages`) are displayed in an fzf picker with a built-in previewer. Supported actions:
145+
146+
- `Enter` — open file
147+
- `ctrl-s` — open in horizontal split
148+
- `ctrl-v` — open in vertical split
149+
- `ctrl-t` — open in new tab
150+
151+
If `fzf-lua` is not installed, results fall back to the quickfix list.

0 commit comments

Comments
 (0)