Files
keycodex/lua/plugins/wilder.lua
T
2024-08-15 19:28:13 +05:45

40 lines
1.1 KiB
Lua

return {
{
'gelguy/wilder.nvim',
keys = {
':',
'/',
'?',
},
config = function()
local wilder = require('wilder')
-- Enable wilder when pressing :, / or ?
wilder.setup({ modes = { ':', '/', '?' } })
-- Enable fuzzy matching for commands and buffers
wilder.set_option('pipeline', {
wilder.branch(
wilder.cmdline_pipeline({
fuzzy = 1,
}),
wilder.vim_search_pipeline({
fuzzy = 1,
})
),
})
wilder.set_option(
'renderer',
wilder.popupmenu_renderer(wilder.popupmenu_palette_theme({
border = 'rounded',
max_height = '75%',
min_height = 0,
prompt_position = 'top',
reverse = 0,
}))
)
end,
},
}