From f563360735c00eef2e197102901d75393ba554e1 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Nguy=E1=BB=85n=20Anh=20Khoa?= Date: Sun, 19 Dec 2021 15:08:58 +0700 Subject: [PATCH] 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 --- src/bridge/mod.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/bridge/mod.rs b/src/bridge/mod.rs index ca61906..e0b38c6 100644 --- a/src/bridge/mod.rs +++ b/src/bridge/mod.rs @@ -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 {