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 dp :GdbStartPDB python -m pdb % 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= +cmap wilder#in_context() ? wilder#next() : "\" +cmap wilder#in_context() ? wilder#previous() : "\" + +" 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()], + \ })) "}} "} diff --git a/lua/plugins.lua b/lua/plugins.lua index ad2c4ba..96e964b 100644 --- a/lua/plugins.lua +++ b/lua/plugins.lua @@ -285,6 +285,9 @@ require('packer').startup( -- Show register content use "tversteeg/registers.nvim" + + -- The missing auto-completion for cmdline! + use 'gelguy/wilder.nvim' end, config = { max_jobs = 16,