nvim: plugins: Add wilder for suggestions in wildmenu

This commit is contained in:
Sanchayan Maity 2021-12-20 13:52:50 +05:30
parent c969cc7ed4
commit 07b161acf6
2 changed files with 29 additions and 0 deletions

View file

@ -0,0 +1,28 @@
call wilder#setup({
\ 'modes': ['/', '?'],
\ 'next_key': '<Tab>',
\ 'previous_key': '<S-Tab>',
\ 'accept_key': '<Down>',
\ 'reject_key': '<Up>',
\ })
call wilder#set_option('pipeline', [
\ wilder#branch(
\ wilder#python_file_finder_pipeline({
\ 'file_command': ['fd', '-tf'],
\ 'dir_command': ['fd', '-td'],
\ 'filters': ['fuzzy_filter', 'difflib_sorter'],
\ }),
\ wilder#cmdline_pipeline({
\ 'fuzzy': 1,
\ 'set_pcre2_pattern': has('nvim'),
\ }),
\ wilder#python_search_pipeline({
\ 'pattern': 'fuzzy',
\ }),
\ ),
\ ])
call wilder#set_option('renderer', wilder#popupmenu_renderer({
\ 'highlighter': wilder#basic_highlighter(),
\ }))

View file

@ -125,6 +125,7 @@ local init = function ()
'chentau/marks.nvim',
}
use 'andymass/vim-matchup'
use 'gelguy/wilder.nvim'
end
return require('packer').startup(init)