Skyler Grey | 1f86071 | 2022-11-05 10:11:40 +0000 | [diff] [blame] | 1 | if !exists('g:vscode') |
| 2 | call wilder#setup({'modes': [':', '/', '?']}) |
Skyler Grey | b8c801e | 2022-09-09 08:25:28 +0100 | [diff] [blame] | 3 | |
Skyler Grey | 1f86071 | 2022-11-05 10:11:40 +0000 | [diff] [blame] | 4 | call wilder#set_option('pipeline', [ |
| 5 | \ wilder#branch( |
| 6 | \ wilder#cmdline_pipeline({ |
| 7 | \ 'fuzzy': 1, |
| 8 | \ 'set_pcre2_pattern': 1, |
| 9 | \ }), |
| 10 | \ wilder#python_search_pipeline({ |
| 11 | \ 'pattern': 'fuzzy', |
| 12 | \ }), |
| 13 | \ ), |
| 14 | \ ]) |
Skyler Grey | b8c801e | 2022-09-09 08:25:28 +0100 | [diff] [blame] | 15 | |
Skyler Grey | 1f86071 | 2022-11-05 10:11:40 +0000 | [diff] [blame] | 16 | let s:highlighters = [ |
| 17 | \ wilder#pcre2_highlighter(), |
| 18 | \ wilder#basic_highlighter(), |
| 19 | \ ] |
Skyler Grey | b8c801e | 2022-09-09 08:25:28 +0100 | [diff] [blame] | 20 | |
Skyler Grey | 1f86071 | 2022-11-05 10:11:40 +0000 | [diff] [blame] | 21 | call wilder#set_option('renderer', wilder#renderer_mux({ |
| 22 | \ ':': wilder#popupmenu_renderer(wilder#popupmenu_border_theme({ |
| 23 | \ 'highlighter': s:highlighters, |
| 24 | \ 'highlights': { |
| 25 | \ 'border': 'Normal', |
| 26 | \ 'default': 'Normal', |
| 27 | \ 'selected': wilder#make_hl('WilderSelected', 'Normal', [{}, {}, {'background': g:lightgrey.gui}]), |
| 28 | \ 'accent': wilder#make_hl('WilderAccent', 'Normal', [{}, {}, {'foreground': g:red.gui}]), |
| 29 | \ 'selected_accent': wilder#make_hl('WilderSelectedAccent', 'WilderSelected', [{}, {}, {'foreground': g:red.gui}]), |
| 30 | \ }, |
| 31 | \ 'border': 'rounded', |
| 32 | \ })), |
| 33 | \ '/': wilder#wildmenu_airline_theme({ |
| 34 | \ 'highlighter': s:highlighters, |
| 35 | \ }), |
| 36 | \ '?': wilder#wildmenu_airline_theme({ |
| 37 | \ 'highlighter': s:highlighters, |
| 38 | \ }), |
| 39 | \ })) |
| 40 | endif |