40 lines
1.0 KiB
Lua
40 lines
1.0 KiB
Lua
return {
|
|
-- a more adventurous wildmenu
|
|
'gelguy/wilder.nvim',
|
|
dependencies = { 'romgrk/fzy-lua-native' },
|
|
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,
|
|
fuzzy_filter = wilder.lua_fzy_filter(),
|
|
},
|
|
wilder.vim_search_pipeline()
|
|
),
|
|
})
|
|
|
|
wilder.set_option(
|
|
'renderer',
|
|
wilder.popupmenu_renderer(wilder.popupmenu_border_theme {
|
|
highlights = {
|
|
border = 'Normal',
|
|
},
|
|
-- stylua: ignore
|
|
border = {
|
|
'┌', '─', '┐',
|
|
'│', '│',
|
|
'└', '─', '┘',
|
|
},
|
|
highlighter = wilder.lua_fzy_highlighter(),
|
|
left = { ' ', wilder.popupmenu_devicons() },
|
|
right = { ' ', wilder.popupmenu_scrollbar() },
|
|
})
|
|
)
|
|
end,
|
|
}
|