Commit 98fb51f
fix: prioritize opts.prompt if available
The fix for issue #786 breaks setups where user wants a consistent prompt text for all vim.ui.select operations. Previously, this used to be provided in `opts` like below (for eg.):
```lua
require("fzf-lua").register_ui_select(function(ui_opts, _)
return {
prompt = "❯ ",
winopts = {
title = ui_opts.prompt:gsub(":%s*$", ""),
title_pos = "center",
height = 0.33,
width = 0.5
}
}
```
With the updated changes, the prompt provided above is not considered and one must change the provided `ui_opts.prompt` instead.
The changes proposed here prioritize `opts.prompt` if available.1 parent 566e805 commit 98fb51f
1 file changed
Lines changed: 1 addition & 1 deletion
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
98 | 98 | | |
99 | 99 | | |
100 | 100 | | |
101 | | - | |
| 101 | + | |
102 | 102 | | |
103 | 103 | | |
104 | 104 | | |
| |||
0 commit comments