nvim: plugins: Add wilder for suggestions in wildmenu
This commit is contained in:
parent
c969cc7ed4
commit
07b161acf6
2 changed files with 29 additions and 0 deletions
28
nvim/.config/nvim/after/plugin/wilder.vim
Normal file
28
nvim/.config/nvim/after/plugin/wilder.vim
Normal 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(),
|
||||||
|
\ }))
|
|
@ -125,6 +125,7 @@ local init = function ()
|
||||||
'chentau/marks.nvim',
|
'chentau/marks.nvim',
|
||||||
}
|
}
|
||||||
use 'andymass/vim-matchup'
|
use 'andymass/vim-matchup'
|
||||||
|
use 'gelguy/wilder.nvim'
|
||||||
end
|
end
|
||||||
|
|
||||||
return require('packer').startup(init)
|
return require('packer').startup(init)
|
||||||
|
|
Loading…
Reference in a new issue