aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorjdhao <jdhao@hotmail.com>2022-01-07 00:40:48 +0800
committerjdhao <jdhao@hotmail.com>2022-01-07 00:40:48 +0800
commit9cd43dcba9bb0ac9f560304bbfc06216f7b82583 (patch)
tree9e24718f8615a43ea33d33de8c6b1084a78f3856
parentd02fd0a69d6b8ce3c6ad573f59aec0e696c78247 (diff)
simplify wilder.nvim settings
-rw-r--r--core/plugins.vim10
1 files changed, 3 insertions, 7 deletions
diff --git a/core/plugins.vim b/core/plugins.vim
index 9fc5226..182ee9c 100644
--- a/core/plugins.vim
+++ b/core/plugins.vim
@@ -393,13 +393,9 @@ augroup END
function! s:wilder_init() abort
try
- call wilder#enable_cmdline_enter()
- set wildcharm=<Tab>
- cmap <expr> <Tab> wilder#in_context() ? wilder#next() : "\<Tab>"
- cmap <expr> <S-Tab> wilder#in_context() ? wilder#previous() : "\<S-Tab>"
-
- " only / and ? are enabled by default
- call wilder#set_option('modes', ['/', '?', ':'])
+ call wilder#setup({
+ \ 'modes': [':', '/', '?'],
+ \ })
call wilder#set_option('pipeline', [
\ wilder#branch(