-
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(runtime): use built-in
packadd
and deprecate Rocks packadd
- Loading branch information
Showing
10 changed files
with
124 additions
and
198 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
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 |
---|---|---|
@@ -1,35 +1,17 @@ | ||
---@toc rocks.contents | ||
|
||
---@mod rocks.nvim rocks.nvim | ||
--- | ||
---@brief [[ | ||
--- | ||
---A luarocks plugin manager for Neovim. | ||
--- | ||
---@brief ]] | ||
|
||
-- Copyright (C) 2023 Neorocks Org. | ||
-- Copyright (C) 2024 Neorocks Org. | ||
-- | ||
-- Version: 0.1.0 | ||
-- License: GPLv3 | ||
-- Created: 05 Jul 2023 | ||
-- Updated: 20 Mar 2024 | ||
-- Updated: 24 Apr 2024 | ||
-- Homepage: https://github.com/nvim-neorocks/rocks.nvim | ||
-- Maintainers: NTBBloodbath <[email protected]>, Vhyrro <[email protected]>, mrcjkb <[email protected]> | ||
|
||
---@mod rocks.lua rocks.nvim Lua API | ||
|
||
local rocks = {} | ||
|
||
---Search for a rock with `opt = true`, add it to the runtimepath and source any plugin files found. | ||
---@param rock_name string | ||
---@param opts rocks.PackaddOpts | ||
---@deprecated | ||
function rocks.packadd(rock_name, opts) | ||
vim.deprecate("rocks.packadd", "Neovim's built-in 'packadd'", "3.0.0", "rocks.nvim") | ||
require("rocks.runtime").packadd(rock_name, opts) | ||
end | ||
|
||
---@class rocks.PackaddOpts | ||
---@field bang? boolean If `true`, rocks.nvim will only add the rock to the runtimepath, but not source any plugin or ftdetect scripts. Default: `false`. | ||
---@field packadd_fallback? boolean Fall back to the builtin |packadd|? Default `true`. | ||
|
||
return rocks |
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
Oops, something went wrong.