Skip to content

Commit 26eb1c6

Browse files
committed
Merge branch 'feature/method-specific-search'
2 parents 4978b81 + d1a451d commit 26eb1c6

2 files changed

Lines changed: 10 additions & 3 deletions

File tree

lua/endpoint/config.lua

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@ local M = {}
55
local default_config = {
66
-- Picker configuration
77
picker = {
8-
type = "telescope", -- "telescope", "vim_ui_select", "snacks"
8+
type = "vim_ui_select", -- "telescope", "vim_ui_select", "snacks"
99
options = {
1010
telescope = {}, -- Telescope-specific options
1111
snacks = {}, -- Snacks-specific options

lua/endpoint/manager/EndpointManager.lua

Lines changed: 9 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -307,12 +307,19 @@ end
307307
---Shows endpoints using the configured picker
308308
function EndpointManager:_show_with_picker(endpoints, opts)
309309
local picker_config = config.get()
310-
local picker_name = picker_config.picker and picker_config.picker.type or picker_config.picker or "telescope"
310+
local picker_name = picker_config.picker and picker_config.picker.type or picker_config.picker or "vim_ui_select"
311311

312312
local picker_instance, selected_picker_name = self.picker_manager:get_best_available_picker(picker_name)
313313

314314
if selected_picker_name ~= picker_name then
315-
vim.notify("Picker '" .. picker_name .. "' not available, using " .. selected_picker_name, vim.log.levels.WARN)
315+
vim.notify(
316+
string.format(
317+
"Picker '%s' not available. Using fallback '%s'. Please install the required dependency or set picker.type explicitly in your config.",
318+
picker_name,
319+
selected_picker_name
320+
),
321+
vim.log.levels.WARN
322+
)
316323
end
317324

318325
local picker_configuration = picker_config.picker or {}

0 commit comments

Comments
 (0)