gelguy / wilder.nvim

A more adventurous wildmenu
MIT License
1.36k stars 34 forks source link

vim8 native package manager support #77

Closed Kapelianovych closed 3 years ago

Kapelianovych commented 3 years ago

Hello 👋 Can this awesome plugin be installed with vim8's native package manager? If it can then what is the installation process? Thank you)

gelguy commented 3 years ago

I'm not too familiar with the native package manager, but I believe there isn't anything special to be done to add this via the package manager.

  1. git clone wilder into ~/.vim/pack/*/start where * can be any directory. (or change ~/.vim to any directory under the &packpath option.
  2. In your vimrc add the line call wilder#setup() and the plugin should work.
Kapelianovych commented 3 years ago

I have tried to do it, but on vim startup, it gave me an error that wilder#setup is not a registered function.

Error detected while processing /Users/username/.vimrc:
line   62:
E117: Unknown function: wilder#setup
Press ENTER or type command to continue

I wrote call wilder#setup({'modes': [':', '/', '?']}) to .vimrc.

gelguy commented 3 years ago

Ah, looks like packages under start aren't loaded until after .vimrc is sourced.

Could you try adding wilder to ~/.vim/pack/*/opt instead?

Then in your .vimrc you can add:

packadd wilder
call wilder#setup()
gelguy commented 3 years ago

Hi, any updates on this? Does adding to ~/.vim/pack/*/opt work?

Kapelianovych commented 3 years ago

Hi! I sincerely apologize for my silence. Yes, it works now 😃 Thank you 👍

P.S.: as git clones plugin into wilder.nvim directory, by default, so we should write:

packadd wilder.nvim

instead of

packed wilder

Or just change directory in which git clones the plugin.