nvim: after/plugin/wilder: Update configuration

- Do not enable the popup menu automatically
- Use arrow keys to navigate
- Enable for cmdline
This commit is contained in:
Sanchayan Maity 2022-01-05 14:01:58 +05:30
parent 307ae9eb7f
commit 53446a15a1
1 changed files with 11 additions and 10 deletions

View File

@ -1,21 +1,22 @@
call wilder#setup({
\ 'modes': ['/', '?'],
\ 'next_key': '<Tab>',
\ 'previous_key': '<S-Tab>',
\ 'accept_key': '<Down>',
\ 'reject_key': '<Up>',
\ 'modes' : ['/', '?', ':'],
\ 'next_key' : '<Down>',
\ 'previous_key' : '<Up>',
\ 'accept_key' : '<Right>',
\ 'reject_key' : '<Left>',
\ 'enable_cmdline_enter' : 0,
\ })
call wilder#set_option('pipeline', [
\ wilder#branch(
\ wilder#python_file_finder_pipeline({
\ 'file_command': ['fd', '-tf'],
\ 'dir_command': ['fd', '-td'],
\ 'filters': ['fuzzy_filter', 'difflib_sorter'],
\ 'file_command' : ['fd', '-tf'],
\ 'dir_command' : ['fd', '-td'],
\ 'filters' : ['fuzzy_filter', 'difflib_sorter'],
\ }),
\ wilder#cmdline_pipeline({
\ 'fuzzy': 1,
\ 'set_pcre2_pattern': has('nvim'),
\ 'fuzzy' : 1,
\ 'set_pcre2_pattern' : has('nvim'),
\ }),
\ wilder#python_search_pipeline({
\ 'pattern': 'fuzzy',