cmp-cmdline
cmp-cmdline copied to clipboard
[Bug]: can't complete user defined command
When define a user command with -complete=command
argument, cmp-cmdline
can't even give a completion list.
For exxample with the following command, after input Redir
in vim cmdline, <tab>
do not give any further completion.
command! -nargs=1 -complete=command Redir call utils#CaptureCommandOutput(<q-args>)
You should update neovim.
Sorry I didn't make it clear.
My neovim version: nvim --version
NVIM v0.6.0
Build type: Release
LuaJIT 2.0.5
Compiled by builduser
Features: +acl +iconv +tui
See ":help feature-compile"
system vimrc file: "$VIM/sysinit.vim"
fall-back for $VIM: "/usr/share/nvim"
Run :checkhealth for more info
I have tried in both ArchLinux and Windows, it didn't work in both platform.
@hrsh7th Should I use the head version of neovim 0.7?
I think this problem was fixed on latest main.
For exxample with the following command, after input
Redir
in vim cmdline,<tab>
do not give any further completion.command! -nargs=1 -complete=command Redir call utils#CaptureCommandOutput(<q-args>)
It still counld not complete when defining user command with -complete=command
argument
I have update to latest commit: f4beb74 2022-02-13 Support modifiers / range / count Fix
I think I met the same issue. cmp-cmdline change the keymapping of <tab>
and broke the neovim's input()'s complete.
By default <tab>
in cmdline is "No mapping found".
For now, the only way to restore tab function in cmdline is unmap
cunmap <tab>