diff options
| author | jdhao <jdhao@hotmail.com> | 2021-08-01 00:43:24 +0800 |
|---|---|---|
| committer | jdhao <jdhao@hotmail.com> | 2021-08-01 00:43:24 +0800 |
| commit | 9a1066b4e9d98d0a225526512a8889a226e94b7e (patch) | |
| tree | 602df0f3708cbf5377fd425013dfa365a5c843ef /core/plugins.vim | |
| parent | 55f0e34e3a701a2a50e3b7255bce9aeb51cebe93 (diff) | |
Add wilder.nvim for cmdline auto-completion
Diffstat (limited to 'core/plugins.vim')
| -rw-r--r-- | core/plugins.vim | 29 |
1 files changed, 29 insertions, 0 deletions
diff --git a/core/plugins.vim b/core/plugins.vim index 5741768..db4d7b3 100644 --- a/core/plugins.vim +++ b/core/plugins.vim @@ -532,5 +532,34 @@ nnoremap <leader>dp :<C-U>GdbStartPDB python -m pdb %<CR> let g:registers_show_empty_registers = 0 let g:registers_window_border = 'single' let g:registers_window_max_width = 80 + +""""""""""""""""""""""""""""""wilder.nvim settings"""""""""""""""""""""""""""""" +call wilder#enable_cmdline_enter() +set wildcharm=<Tab> +cmap <expr> <Tab> wilder#in_context() ? wilder#next() : "\<Tab>" +cmap <expr> <S-Tab> wilder#in_context() ? wilder#previous() : "\<S-Tab>" + +" only / and ? are enabled by default +call wilder#set_option('modes', ['/', '?', ':']) + +call wilder#set_option('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', + \ }), + \ ), + \ ]) + +call wilder#set_option('renderer', wilder#wildmenu_renderer({ + \ 'highlighter': wilder#basic_highlighter(), + \ 'separator': ' ', + \ 'right': [' ', wilder#wildmenu_index()], + \ })) "}} "} |
