I was try to write and inject horizon.io plugin in the $root (app) with documented way:
export default ({ app, store }) => {
app.$horizon = horizon
}
but something was wrong and the injected props will append into $store key:

As you can see, $horizon will added into $store -> $store.$horizon, and into $store.app -> $store.app.$horizon.
If I test like firebase example, the result will be the same:

export default (context, inject) => {
inject('horizon', horizon)
}
will create $horizon, the documentation need to be completed (WIP).
@alexchopin Hello !
Thanks for the info.
Did you close the issue because it has been documented properly ?
At the moment https://nuxtjs.org/guide/plugins is not reflecting your comment.
There is an example of the usage of inject, but the inject function itself is not documented like you state here (key,value) will be available as $key
Let me know if you want me to open another issue to improve the documentation.
This thread has been automatically locked since there has not been any recent activity after it was closed. Please open a new issue for related bugs.
Most helpful comment
will create
$horizon, the documentation need to be completed (WIP).