Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Small fix: Treat example codes in help file. #170

Open
wants to merge 1 commit into
base: master
Choose a base branch
from
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
18 changes: 9 additions & 9 deletions doc/wilder.txt
Original file line number Diff line number Diff line change
Expand Up @@ -254,7 +254,7 @@ Example:
call wilder#set_option('pipeline', [
\ {ctx, x -> empty(x) ? v:false : x},
\ {ctx, x -> MyCompletionFunction(x)},
\ ]
\ ])
<
This pipeline will terminate early if the cmdline is empty.
Since this is a common pattern, it is provided as the |wilder#check()|
Expand Down Expand Up @@ -295,7 +295,7 @@ Example:
call wilder#set_option('pipeline', [
\ {_, x -> {ctx -> timer_start(100, {-> wilder#resolve(ctx, x)})}},
\ {ctx, x -> MyCompletionFunction(x)},
\ ]
\ ])
<
This will call `MyCompletionFunction` after a 100 millisecond delay.

Expand Down Expand Up @@ -475,7 +475,7 @@ wilder#branch({list_of_pipelines}) *wilder#branch()*
\ ],
\ wilder#search_pipeline(),
\ ),
\ ]
\ ])
<
This pipeline will return completions from the history if {x} is
empty.
Expand All @@ -500,7 +500,7 @@ wilder#subpipeline({f}) *wilder#subpipeline()*
\ wilder#history(),
\ {ctx, h -> wilder#vim_fuzzy_filt(ctx, {}, h, x)},
\ ]})
\ ]),
\ ])
<
This pipeline will return completions from the history is {x}
which are fuzzily filtered using |wilder#vim_fuzzy_filt()|
Expand Down Expand Up @@ -3508,12 +3508,12 @@ wilder#renderer_mux({args}) *wilder#renderer_mux()*
\ ['substitute', 0],
\ [':', wilder#popupmenu_renderer()],
\ ['/', wilder#wildmenu_renderer()],
\ ])
\ ]))

wilder#set_option('renderer, wilder#renderer_mux({
\ ':': wilder#popupmenu_renderer(),
\ '/': wilder#wildmenu_renderer(),
\ })
\ }))
<

*wilder#devicons_get_icon_from_nvim_web_devicons()*
Expand Down Expand Up @@ -3781,7 +3781,7 @@ Use Popupmenu for : and Wildmenu for /~
wilder#set_option('renderer, wilder#renderer_mux({
\ ':': wilder#popupmenu_renderer(),
\ '/': wilder#wildmenu_renderer(),
\ })
\ }))
<

Lua Only Configuration~
Expand All @@ -3790,7 +3790,7 @@ Lua Only Configuration~
wilder.setup({modes = {':', '/', '?'}})
-- Disable Python remote plugin
wilder.set_option('use_python_remote_plugin', 0)

wilder.set_option('pipeline', {
wilder.branch(
wilder.cmdline_pipeline({
Expand All @@ -3799,7 +3799,7 @@ Lua Only Configuration~
wilder.vim_search_pipeline()
)
})

wilder.set_option('renderer', wilder.renderer_mux({
[':'] = wilder.popupmenu_renderer({
highlighter = wilder.basic_highlighter(),
Expand Down