Closed AdeAttwood closed 4 months ago
@arnevm123 what do we think about getting this is now. I have bitten the bullet and gone full setup.
Looks good!
Just a small question: running setup without any options now will return an error, for me it would make sense to have a default set of backends that are registered with this, similar to the behaviour of the application now?
Also, should the keymaps for the window be configurable? Most of them seem very intuitive and don't need changing for me, except for maybe next/ next checkpoint or the previous versions. But for me there's no need yet.
Summary:
Now when using ivy.nvim you will need to call the
setup
function. This will need to register any backends you want to use. This is an example config, this can be put into a plugin in~/.config/nvim/plugin/ivy.lua
for example.If you are using Lazy you can use the
config
directly to call the setup function.The
setup
function can only be called once, if its called a second time any backends or config will not be used. The module does expose theregister_backend
function, this can be used to load backends before or after the setup function is called.As well as the
register_backend
the corerun
function is exposed. With this exposed we should be able to build anything we want.Test Plan:
Not much to test in this one, it has been tested locally on my config that does not use any plugin managers, also a sandbox Lazy env using
NVIM_APPNAME
NVIM_APPNAMETesting with a manual setup:
Testing with Lazy: