Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Support lazy loading feature #76

Merged
merged 4 commits into from
Jul 10, 2021
Merged

Support lazy loading feature #76

merged 4 commits into from
Jul 10, 2021

Conversation

lambdalisue
Copy link
Member

@lambdalisue lambdalisue commented Jul 10, 2021

To support #75

See https://github.com/vim-denops/denops.vim/pull/76/files#diff-2dac928d77c51b449506e022e27ca2cf8424241df3bec2a51658ff86ac76cd22 for detail.

How to enable lazy loading denops itself

Nothing needs to be done. Denops automatically detect if it's loaded after vim startup or not and automatically start server properly

How to enable lazy loading on denops plugins

Call denops#plugin#register('{name}') with silent! like

silent! call denops#plugin#register('ddc.vim')

It's more natural and useful to throw an error when plugin name has duplicated.

See also #75
To support lazy loading feature

See #75
To allow users to register denops plugin without knowing about a mechanisms of denops plugin discovery.
Now users can use those autocmd to hook plugin registration.
@lambdalisue lambdalisue merged commit d3c8571 into main Jul 10, 2021
@lambdalisue lambdalisue deleted the support-lazy-loading branch July 10, 2021 08:09
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

1 participant