Skip to content

Commit

Permalink
add wilder
Browse files Browse the repository at this point in the history
  • Loading branch information
zhenyangze committed Mar 28, 2023
1 parent 52ba758 commit 75d66e4
Show file tree
Hide file tree
Showing 2 changed files with 32 additions and 0 deletions.
10 changes: 10 additions & 0 deletions layers/common/tool-wilder.vim
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
if has('nvim')
function! UpdateRemotePlugins(...)
" Needed to refresh runtime files
let &rtp=&rtp
UpdateRemotePlugins
endfunction
Plug 'gelguy/wilder.nvim', { 'do': function('UpdateRemotePlugins') }
else
Plug 'gelguy/wilder.nvim'
endif
22 changes: 22 additions & 0 deletions layers/user/wilder.vim
Original file line number Diff line number Diff line change
@@ -0,0 +1,22 @@
call wilder#setup({'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#popupmenu_renderer(wilder#popupmenu_palette_theme({
\ 'border': 'rounded',
\ 'max_height': '75%',
\ 'min_height': 0,
\ 'prompt_position': 'top',
\ 'reverse': 0,
\ })))

0 comments on commit 75d66e4

Please sign in to comment.