mirror of
https://github.com/nix-community/nixvim.git
synced 2025-11-08 19:46:06 +01:00
plugins/wilder: migrate to mkNeovimPlugin
This commit is contained in:
parent
f7bd9bbecb
commit
5275e258bf
3 changed files with 206 additions and 289 deletions
|
|
@ -1,3 +1,4 @@
|
|||
{ lib, ... }:
|
||||
{
|
||||
empty = {
|
||||
plugins.wilder.enable = true;
|
||||
|
|
@ -7,46 +8,50 @@
|
|||
plugins.wilder = {
|
||||
enable = true;
|
||||
|
||||
enableCmdlineEnter = true;
|
||||
modes = [
|
||||
"/"
|
||||
"?"
|
||||
];
|
||||
wildcharm = "&wildchar";
|
||||
nextKey = "<Tab>";
|
||||
prevKey = "<S-Tab>";
|
||||
acceptKey = "<Down>";
|
||||
rejectKey = "<Up>";
|
||||
acceptCompletionAutoSelect = true;
|
||||
settings = {
|
||||
enable_cmdline_enter = true;
|
||||
modes = [
|
||||
"/"
|
||||
"?"
|
||||
];
|
||||
wildcharm = "&wildchar";
|
||||
next_key = "<Tab>";
|
||||
previous_key = "<S-Tab>";
|
||||
accept_key = "<Down>";
|
||||
reject_key = "<Up>";
|
||||
accept_completion_auto_select = 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',
|
||||
})
|
||||
)
|
||||
''
|
||||
];
|
||||
renderer = ''
|
||||
wilder.wildmenu_renderer({
|
||||
-- highlighter applies highlighting to the candidates
|
||||
highlighter = wilder.basic_highlighter(),
|
||||
})
|
||||
'';
|
||||
preHook = null;
|
||||
postHook = null;
|
||||
options = {
|
||||
use_cmdlinechanged = false;
|
||||
interval = 100;
|
||||
before_cursor = false;
|
||||
use_python_remote_plugin = true;
|
||||
num_workers = 2;
|
||||
pipeline = [
|
||||
(lib.nixvim.mkRaw ''
|
||||
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',
|
||||
})
|
||||
)
|
||||
'')
|
||||
];
|
||||
renderer = lib.nixvim.mkRaw ''
|
||||
wilder.wildmenu_renderer({
|
||||
-- highlighter applies highlighting to the candidates
|
||||
highlighter = wilder.basic_highlighter(),
|
||||
})
|
||||
'';
|
||||
pre_hook = null;
|
||||
post_hook = null;
|
||||
};
|
||||
};
|
||||
};
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue