Shougo / ddu.vim

Dark deno-powered UI framework for Vim/NeoVim
MIT License
295 stars 24 forks source link

Fail to call patch_global when `-V1` given in CLI arguments #115

Closed kyoh86 closed 5 months ago

kyoh86 commented 5 months ago

Warning: I will close the issue without the minimal init.vim and the reproduction instructions.

Problems summary

When I use Neovim with -V[N] options over N >= 1, ddu#custom#global_patch definitely fails with following error.

Error detected while processing function ddu#custom#patch_global[2]..<SNR>69_notify[7]..ddu#denops#_notify[1]..<SNR>70_init:
line   23:
E497: No autocommand match name to substitute for "<amatch>"

Expected

Success to patch global config.

Environment Information

NVIM v0.11.0-dev-78d3f47
Build type: Release
LuaJIT 2.1.1716656478
Run ":verbose version" for more info

Provide a minimal init.vim/vimrc without plugin managers (Required!)

set rtp+=/path/to/denops.vim
set rtp+=/path/to/ddu.vim

How to reproduce the problem from neovim/Vim startup (Required!)

  1. Start Neovim with nvim -V1
  2. :call ddu#custom#patch_global({})

Screenshot (if possible)

Upload the log messages by :redir and :message (if errored)

Error detected while processing function ddu#custom#patch_global[2]..<SNR>69_notify[7]..ddu#denops#_notify[1]..<SNR>70_init:
line   23:
E497: No autocommand match name to substitute for "<amatch>"
Shougo commented 5 months ago

Fixed.