Skip to content

Commit

Permalink
Merge pull request #236 from sankantsu/enable-rockspec
Browse files Browse the repository at this point in the history
Enable rockspec
  • Loading branch information
3rd authored Nov 2, 2024
2 parents 8fe1476 + f7920d0 commit c4d44e7
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 13 deletions.
10 changes: 7 additions & 3 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -41,15 +41,19 @@ Fully **optional:**
> Since version v11.\* of Lazy rockspec is supported, so no need of extra plugins `vhyrro/luarocks.nvim`
<details>
<summary><b>Lazy >= v11.* [(DISABLED DUE TO ISSUES)](https://github.com/3rd/image.nvim/issues/191)</b></summary>
<summary><b>Lazy >= v11.*</b></summary>

```lua
{
require("lazy").setup({
"3rd/image.nvim",
config = function()
-- ...
end
}
}, {
rocks = {
hererocks = true, -- recommended if you do not have global installation of Lua 5.1.
},
})
```

</details>
Expand Down
12 changes: 2 additions & 10 deletions image.nvim-scm-1.rockspec.disabled → image.nvim-scm-1.rockspec
Original file line number Diff line number Diff line change
@@ -1,8 +1,5 @@
local modrev, specrev = "scm", "-1"

local repo_url = "https://github.com/3rd/image.nvim"
local git_ref = "7d021c94e231d491355f5e724ba357ace296f06d"

rockspec_format = "3.0"
package = "image.nvim"
version = modrev .. specrev
Expand All @@ -11,7 +8,7 @@ description = {
summary = "🖼️ Bringing images to Neovim.",
detailed = "",
labels = { "neovim", "neovim-plugin" },
homepage = repo_url,
homepage = "https://github.com/3rd/image.nvim",
license = "MIT",
}

Expand All @@ -21,14 +18,9 @@ dependencies = {
}

source = {
url = repo_url .. "/archive/" .. git_ref .. ".zip",
dir = "image.nvim-" .. git_ref,
url = "git://github.com/3rd/image.nvim"
}

if modrev == "scm" or modrev == "dev" then source = {
url = repo_url:gsub("https", "git"),
} end

test_dependencies = {}

build = {
Expand Down

0 comments on commit c4d44e7

Please sign in to comment.