k-takata / minpac

A minimal package manager for Vim 8+ (and Neovim)
835 stars 30 forks source link

Inaccurate documentation of minpac#init() function #129

Closed zendradix closed 3 years ago

zendradix commented 3 years ago

In the vim help page, it looks like the argument to minpac#init() should be a dictionary in a list: https://github.com/k-takata/minpac/blob/093f00891aeb04e98ceb5a541885d025c9fae169/doc/minpac.txt#L253 Taking this literally, for example call minpac#init([{}]), results in E712: Argument of extend() must be a List or Dictionary.

The correct behaviour seems like the argument should just be a dictionary - e.g. call minpac#init({}) runs fine.

k-takata commented 3 years ago

[] means that the item inside it can be omitted. This notation is also used in the official help of Vim.

zendradix commented 3 years ago

Oh, sorry. Thank you for the clarification.