From 535c2f8658c4ace04807c578bebf741597dcb467 Mon Sep 17 00:00:00 2001 From: Matthieu Coudron <886074+teto@users.noreply.github.com> Date: Sun, 16 Mar 2025 18:15:00 +0100 Subject: [PATCH] build(contrib): add zsh completion (#32617) * build(contrib): add zsh completion this is not part of the build system yet, so packager managers are supposed to install the file by themselves. bash doesn't seem to provide shell completion, zsh embeds its own completion that is bundled with vim's. Instead of copying zsh's completion, this generated one via https://github.com/RobSis/zsh-completion-generator --------- Co-authored-by: Eisuke Kawashima --- contrib/zsh-completion.zsh | 36 ++++++++++++++++++++++++++++++++++++ 1 file changed, 36 insertions(+) create mode 100644 contrib/zsh-completion.zsh diff --git a/contrib/zsh-completion.zsh b/contrib/zsh-completion.zsh new file mode 100644 index 0000000000..73fc7045ec --- /dev/null +++ b/contrib/zsh-completion.zsh @@ -0,0 +1,36 @@ +#compdef nvim + +# zsh completions for 'nvim' +# automatically generated with http://github.com/RobSis/zsh-completion-generator +local arguments + +arguments=( + '*--cmd[execute before any config]:command' + '*-c[Execute after config and first file]:command' + '-l[Execute Lua