-
Notifications
You must be signed in to change notification settings - Fork 3
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat: basic rocks-config.nvim interoperability (#30)
- Loading branch information
Showing
4 changed files
with
46 additions
and
6 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,14 @@ | ||
---@type rocks.hooks.RockSpecModifier | ||
return { | ||
type = "RockSpecModifier", | ||
---@param rock rocks-dev.RockSpec | ||
hook = function(rock) | ||
if rock.dev or rock.dir then | ||
-- this prevents rocks.nvim/rocks-config.nvim | ||
-- from trying to load the plugin and its configs, respectively. | ||
-- rocks-dev.nvim invokes rocks-config's `configure` API before loading a rock. | ||
rock.opt = true | ||
end | ||
return rock | ||
end, | ||
} |
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