nvim/lua/plugins/wilder.lua
2023-07-16 21:16:53 +01:00

39 lines
1.1 KiB
Lua

return {
"gelguy/wilder.nvim",
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,
},
wilder.vim_search_pipeline()
),
})
wilder.set_option(
"renderer",
wilder.renderer_mux {
[":"] = wilder.popupmenu_renderer {
highlighter = wilder.basic_highlighter(),
left = {
" ",
wilder.popupmenu_devicons(),
},
right = {
" ",
wilder.popupmenu_scrollbar(),
},
},
["/"] = wilder.wildmenu_renderer {
highlighter = wilder.basic_highlighter(),
},
}
)
end,
}