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

feat: trigger RocksInstallPost user event after install/update #498

Merged
merged 2 commits into from
Aug 11, 2024

Conversation

mrcjkb
Copy link
Member

@mrcjkb mrcjkb commented Aug 2, 2024

See also: #489

This would allow users of plugins that require an impure autoload function to be invoked to do so.
For example:

vim.api.nvim_create_autocmd("User", {
   pattern = "RocksInstallPost",
   callback = function(ev)
      if ev.data.installed.name == "firenvim" then
        vim.cmd.call("firenvim#install(0)")
      end
  end,
})

@mrcjkb mrcjkb enabled auto-merge (squash) August 11, 2024 18:36
@mrcjkb mrcjkb merged commit 7994116 into master Aug 11, 2024
9 checks passed
@mrcjkb mrcjkb deleted the user-command branch August 11, 2024 18:40
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.

2 participants