remove "-complete=expression" with -nargs=0 (#1097)

fix: Remove `-complete` when using `-nargs=0`

Newer versions of Vim/Neovim throw error when using -complete with
-nargs=0

https://github.com/neoclide/coc.nvim/issues/3414
https://github.com/neoclide/coc.nvim/pull/3210
macos-click-through
Nguyễn Anh Khoa 3 years ago committed by GitHub
parent 7b6a8f31d2
commit f563360735
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

@ -109,7 +109,7 @@ pub fn build_neovide_command(channel: u64, num_args: u64, command: &str, event:
};
if num_args == 0 {
return format!(
"command! -nargs={} -complete=expression {} call rpcnotify({}, 'neovide.{}')",
"command! -nargs={} {} call rpcnotify({}, 'neovide.{}')",
nargs, command, channel, event
);
} else {

Loading…
Cancel
Save