2023-07-16 21:16:53 +01:00
|
|
|
return {
|
|
|
|
"gelguy/wilder.nvim",
|
2023-07-16 21:41:45 +01:00
|
|
|
dependencies = {
|
|
|
|
"romgrk/fzy-lua-native",
|
|
|
|
},
|
2023-07-16 21:16:53 +01:00
|
|
|
config = function()
|
|
|
|
local wilder = require "wilder"
|
|
|
|
wilder.setup { modes = { "/", "?", ":" } }
|
|
|
|
-- Disable Python remote plugin
|
|
|
|
wilder.set_option("use_python_remote_plugin", 0)
|
|
|
|
wilder.set_option("pipeline", {
|
|
|
|
wilder.branch(
|
|
|
|
wilder.cmdline_pipeline {
|
|
|
|
fuzzy = 1,
|
2023-07-16 21:41:45 +01:00
|
|
|
fuzzy_filter = wilder.lua_fzy_filter(),
|
2023-07-16 21:16:53 +01:00
|
|
|
},
|
|
|
|
wilder.vim_search_pipeline()
|
|
|
|
),
|
|
|
|
})
|
|
|
|
wilder.set_option(
|
|
|
|
"renderer",
|
|
|
|
wilder.renderer_mux {
|
2023-07-16 21:41:45 +01:00
|
|
|
[":"] = wilder.popupmenu_renderer(wilder.popupmenu_border_theme {
|
|
|
|
highlighter = wilder.lua_fzy_highlighter(),
|
2023-07-16 21:16:53 +01:00
|
|
|
left = {
|
|
|
|
" ",
|
|
|
|
wilder.popupmenu_devicons(),
|
|
|
|
},
|
|
|
|
right = {
|
|
|
|
" ",
|
|
|
|
wilder.popupmenu_scrollbar(),
|
|
|
|
},
|
2023-07-16 21:41:45 +01:00
|
|
|
border = "rounded",
|
|
|
|
min_width = "50%",
|
|
|
|
}),
|
2023-07-16 21:16:53 +01:00
|
|
|
["/"] = wilder.wildmenu_renderer {
|
2023-07-16 21:41:45 +01:00
|
|
|
highlighter = wilder.lua_fzy_highlighter(),
|
2023-07-16 21:16:53 +01:00
|
|
|
},
|
|
|
|
}
|
|
|
|
)
|
|
|
|
end,
|
|
|
|
}
|