plugins/wilder: update options and add missing ones

This commit is contained in:
Gaetan Lepage 2023-10-11 09:02:40 +02:00 committed by Gaétan Lepage
parent b483c752c2
commit 752f0481ce
2 changed files with 250 additions and 37 deletions

View file

@ -7,14 +7,43 @@
plugins.wilder = {
enable = true;
modes = ["/" ":"];
enableCmdlineEnter = false;
wildcharm = "k";
nextKey = "a";
prevKey = "b";
acceptKey = "c";
rejectKey = "d";
acceptCompletionAutoSelect = false;
enableCmdlineEnter = true;
modes = ["/" "?"];
wildcharm = "&wildchar";
nextKey = "<Tab>";
prevKey = "<S-Tab>";
acceptKey = "<Down>";
rejectKey = "<Up>";
acceptCompletionAutoSelect = true;
useCmdlinechanged = false;
interval = 100;
beforeCursor = false;
usePythonRemotePlugin = true;
numWorkers = 2;
pipeline = [
''
wilder.branch(
wilder.cmdline_pipeline({
language = 'python',
fuzzy = 1,
}),
wilder.python_search_pipeline({
pattern = wilder.python_fuzzy_pattern(),
sorter = wilder.python_difflib_sorter(),
engine = 're',
})
)
''
];
render = ''
wilder.wildmenu_renderer({
-- highlighter applies highlighting to the candidates
highlighter = wilder.basic_highlighter(),
})
'';
preHook = null;
postHook = null;
};
};
}