-
Notifications
You must be signed in to change notification settings - Fork 17
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat: trigger
RocksInstallPost
user event after install/update
- Loading branch information
Showing
6 changed files
with
98 additions
and
4 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,37 @@ | ||
-- Copyright (C) 2024 Neorocks Org. | ||
-- | ||
-- License: GPLv3 | ||
-- Created: 03 Aug 2024 | ||
-- Updated: 03 Aug 2024 | ||
-- Homepage: https://github.com/nvim-neorocks/rocks.nvim | ||
-- Maintainers: NTBBloodbath <[email protected]>, Vhyrro <[email protected]>, mrcjkb <[email protected]> | ||
|
||
---@mod rocks.user-event rocks.nvim |User| |event|s | ||
--- | ||
---@brief [[ | ||
---The following |User| |event|s are available: | ||
--- | ||
---RocksInstallPost Invoked after installing or updating a rock | ||
--- The `data` is of type | ||
--- |rocks.user-events.data.RocksInstallPost|. | ||
--- | ||
--- | ||
---To create an autocommand for an event: | ||
--->lua | ||
--- vim.api.nvim_create_autocmd("User", { | ||
--- pattern = "RocksInstallPost", | ||
--- callback = function(ev) | ||
--- ---@type rocks.user-events.data.RocksInstallPost | ||
--- local data = ev.data | ||
--- -- ... | ||
--- end, | ||
--- }) | ||
---< | ||
|
||
---@class rocks.user-events.data.RocksInstallPost | ||
---@field spec RockSpec | ||
---@field installed Rock | ||
|
||
error("can't require a meta module") | ||
local meta = {} | ||
return meta |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters