Skip to content

Commit

Permalink
feat: add rockspec (#1051)
Browse files Browse the repository at this point in the history
so that other plugins can mark nvim-cmp as a dependency

Some justification there https://teto.github.io/posts/2022-06-22-neovim-plugin-luarocks-2.html
  • Loading branch information
teto authored Aug 20, 2022
1 parent 4a86374 commit 274a3f9
Showing 1 changed file with 37 additions and 0 deletions.
37 changes: 37 additions & 0 deletions nvim-cmp-scm-1.rockspec
Original file line number Diff line number Diff line change
@@ -0,0 +1,37 @@
local MODREV, SPECREV = "scm", "-1"
rockspec_format = "3.0"
package = "nvim-cmp"
version = MODREV .. SPECREV

description = {
summary = "A completion plugin for neovim",
labels = { "neovim" },
detailed = [[
A completion engine plugin for neovim written in Lua. Completion sources are installed from external repositories and "sourced".
]],
homepage = "https://github.com/hrsh7th/nvim-cmp",
license = "MIT",
}

dependencies = {
"lua >= 5.1, < 5.4",
}

source = {
url = "http://github.com/hrsh7th/nvim-cmp/archive/v" .. MODREV .. ".zip",
dir = "nvim-cmp-" .. MODREV,
}

if MODREV == "scm" then
source = {
url = "git://github.com/hrsh7th/nvim-cmp",
}
end

build = {
type = "builtin",
}
copy_directories = {
'autoload',
'plugin',
}

0 comments on commit 274a3f9

Please sign in to comment.