-
Notifications
You must be signed in to change notification settings - Fork 34
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
Vim(call):E697: List lacks of ending character ']' using example config. #53
Comments
I don't use This is the 2nd report (see #52 (comment)) so there seems to be something going wrong. Is it possible to remove lines to debug which section is causing the issue? |
@gelguy You don't have to use packer to repo this issue. Just create a lua file with below content and do vim.cmd([[
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>"
call wilder#set_option('modes', ['/', '?', ':'])
call wilder#set_option('pipeline', [
\ wilder#branch(
\ wilder#python_file_finder_pipeline({
\ 'file_command': {_, arg -> stridx(arg, '.') != -1 ? ['fd', '-tf', '-H'] : ['fd', '-tf']},
\ 'dir_command': ['fdfind', '-td'],
\ 'filters': ['cpsm_filter'],
\ 'cache_timestamp': {-> 1},
\ }),
\ wilder#cmdline_pipeline({
\ 'fuzzy': 1,
\ 'fuzzy_filter': wilder#python_cpsm_filter(),
\ 'set_pcre2_pattern': 0,
\ }),
\ wilder#python_search_pipeline({
\ 'pattern': wilder#python_fuzzy_pattern({
\ 'start_at_boundary': 0,
\ }),
\ }),
\ ),
\ ])
let g:highlighters = [
\ wilder#pcre2_highlighter(),
\ wilder#lua_fzy_highlighter(),
\ ]
call wilder#set_option('renderer', wilder#renderer_mux({
\ ':': wilder#popupmenu_renderer({
\ 'highlighter': g:highlighters,
\ 'left': [
\ wilder#popupmenu_devicons(),
\ ],
\ 'right': [
\ ' ',
\ wilder#popupmenu_scrollbar(),
\ ],
\ }),
\ '/': wilder#wildmenu_renderer({
\ 'highlighter': g:highlighters,
\ }),
\ }))
]]) |
Thanks for the config. I can reproduce it now. Looks like this is a Neovim bug (see neovim/neovim#14809). The workaround would be to combine all the |
A possible workaround for this could be to have the
|
Configuration in pure Lua is now fully supported. Examples can be found in the README page. Closing this issue since it is no longer necessary to call |
Here is my config, I'm using Neovim 0.5 with Packer.
The text was updated successfully, but these errors were encountered: