-
Notifications
You must be signed in to change notification settings - Fork 36
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #185 from kevinm6/master
feat: add rockspec to avoid needs of extra plugins on Lazy >= v11
- Loading branch information
Showing
2 changed files
with
56 additions
and
0 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,37 @@ | ||
local modrev, specrev = "scm", "-1" | ||
|
||
local repo_url = "https://github.com/kevinm6/image.nvim" | ||
local git_ref = "59d35492342f4afd74d74961cb9aafdb7caf29b9" | ||
|
||
rockspec_format = "3.0" | ||
package = "image.nvim" | ||
version = modrev .. specrev | ||
|
||
description = { | ||
summary = "🖼️ Bringing images to Neovim.", | ||
detailed = "", | ||
labels = { "neovim", "neovim-plugin" }, | ||
homepage = repo_url, | ||
license = "MIT", | ||
} | ||
|
||
dependencies = { | ||
"lua >= 5.1", | ||
"magick", | ||
} | ||
|
||
source = { | ||
url = repo_url .. "/archive/" .. git_ref .. ".zip", | ||
dir = "image.nvim-" .. "59d35492342f4afd74d74961cb9aafdb7caf29b9", | ||
} | ||
|
||
if modrev == "scm" or modrev == "dev" then source = { | ||
url = repo_url:gsub("https", "git"), | ||
} end | ||
|
||
test_dependencies = {} | ||
|
||
build = { | ||
type = "builtin", | ||
copy_directories = {}, | ||
} |