zsh-completion.zsh (1589B)
1 #compdef nvim 2 3 # zsh completions for 'nvim' 4 # automatically generated with http://github.com/RobSis/zsh-completion-generator 5 local arguments 6 7 arguments=( 8 '*--cmd[execute <cmd> before any config]:command' 9 '*-c[Execute <cmd> after config and first file]:command' 10 '-l[Execute Lua <script> (with optional args)]:script:_files -g "*.lua"' # TODO: remaining args are passed to <script> and not opened by nvim for edit 11 '-S[source <session> after loading the first file]::session:_files' 12 '-s[read Normal mode commands from <scriptin>]:file:_files' 13 '-u[use this config file]:config' 14 '-d[diff mode]' 15 {-es,-Es}'[silent (batch) mode]' 16 '(- *)'{-h,--help}'[print this help message]' 17 '-i[use this shada file]:shada:_files -g "*.shada"' 18 '-n[no swap file, use memory only]' 19 '-o-[open N windows (default: one per file)]::N' 20 '-O-[open N vertical windows (default: one per file)]::N' 21 '-p-[open N tab pages (default: one per file)]::N' 22 '-R[read-only (view) mode]' 23 '(- *)'{-v,--version}'[print version information]' 24 '-V[verbose \[level\]\[file\]]' 25 '(- *)--api-info[write msgpack-encoded API metadata to stdout]' 26 '--clean["Factory defaults" (skip user config and plugins, shada)]' 27 '--embed[use stdin/stdout as a msgpack-rpc channel]' 28 '--headless[dont start a user interface]' 29 '--listen[serve RPC API from this address]:address' 30 '--remote[\[-subcommand\] Execute commands remotely on a server]' 31 '--server[connect to this Nvim server]:address' 32 '--startuptime[write startup timing messages to <file>]:file:_files' 33 '*:filename:_files' 34 ) 35 36 _arguments -s $arguments