blob: ff3a2722fdc48e7e22c0de5300d63152045d237d [file] [log] [blame]
Skyler Grey1f860712022-11-05 10:11:40 +00001if !exists('g:vscode')
2 call wilder#setup({'modes': [':', '/', '?']})
Skyler Greyb8c801e2022-09-09 08:25:28 +01003
Skyler Grey1f860712022-11-05 10:11:40 +00004 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 Greyb8c801e2022-09-09 08:25:28 +010015
Skyler Grey1f860712022-11-05 10:11:40 +000016 let s:highlighters = [
17 \ wilder#pcre2_highlighter(),
18 \ wilder#basic_highlighter(),
19 \ ]
Skyler Greyb8c801e2022-09-09 08:25:28 +010020
Skyler Grey1f860712022-11-05 10:11:40 +000021 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 \ }))
40endif