nix-community.nixvim/tests/test-sources/plugins/utils/wilder.nix

50 lines
1.1 KiB
Nix
Raw Permalink Normal View History

{
empty = {
2023-10-11 09:01:45 +02:00
plugins.wilder.enable = true;
};
example = {
2023-10-11 09:01:45 +02:00
plugins.wilder = {
enable = true;
2023-10-11 09:01:45 +02:00
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;
};
};
}