mirror of
https://git.disroot.org/FollieHiyuki/dotfiles.git
synced 2024-12-12 17:18:22 -05:00
32 lines
1.1 KiB
Lua
32 lines
1.1 KiB
Lua
vim.cmd [[ call wilder#setup({'modes': [':', '/', '?']}) ]]
|
|
|
|
-- Doesn't work yet. Bugs in Neovim (see neovim/neovim#14809 and gelguy/wilder.nvim#53)
|
|
-- so can't do multi-line config inside vim.cmd [[ ]] with \
|
|
vim.cmd [[
|
|
call 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(),
|
|
\ 'separator': ' · ',
|
|
\ 'right': [' ', wilder#wildmenu_index()]
|
|
\ })
|
|
\ }))
|
|
]]
|
|
|
|
vim.cmd [[
|
|
call wilder#set_option('pipeline', [
|
|
\ wilder#branch(
|
|
\ wilder#python_file_finder_pipeline({
|
|
\ 'file_command': ['fd', '--type', 'f', '--follow', '--hidden', '--exclude', '.git'],
|
|
\ 'dir_command': ['fd', '--type', 'd', '--follow', '--hidden', '--exclude', '.git']
|
|
\ }),
|
|
\ wilder#cmdline_pipeline({'language': 'python'}),
|
|
\ wilder#python_search_pipeline()
|
|
\ )
|
|
\ ])
|
|
]]
|