Skip to content

Commit f87117d

Browse files
author
Matthieu Coudron
committed
feat: adding rockspec
so that one can install the plugin from luarocks.org . It helps deal automatically with plugin dependencies. See https://teto.github.io/posts/2022-06-22-neovim-plugin-luarocks-2.html for more context.
1 parent 2a1e6d9 commit f87117d

File tree

1 file changed

+36
-0
lines changed

1 file changed

+36
-0
lines changed

rest.nvim-scm-1.rockspec

Lines changed: 36 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,36 @@
1+
local MAJOR, REV = "scm", "-1"
2+
rockspec_format = "3.0"
3+
package = "rest.nvim"
4+
version = MAJOR .. REV
5+
6+
description = {
7+
summary = "A fast Neovim http client written in Lua",
8+
labels = { "neovim", "rest"},
9+
detailed = [[
10+
rest.nvim makes use of a curl wrapper implemented in pure Lua in plenary.nvim so, in other words, rest.nvim is a curl wrapper so you don't have to leave Neovim!
11+
]],
12+
homepage = "https://github.com/rest-nvim/rest.nvim",
13+
license = "MIT",
14+
}
15+
16+
dependencies = {
17+
"lua >= 5.1, < 5.4",
18+
}
19+
20+
source = {
21+
url = "http://github.com/rest-nvim/rest.nvim/archive/v" .. MAJOR .. ".zip",
22+
dir = "rest.nvim-" .. MAJOR,
23+
}
24+
25+
if MAJOR == "scm" then
26+
source = {
27+
url = "git://github.com/rest-nvim/rest.nvim",
28+
}
29+
end
30+
31+
build = {
32+
type = "builtin",
33+
copy_directories = {
34+
'plugin'
35+
}
36+
}

0 commit comments

Comments
 (0)