mirror of
https://github.com/nvim-treesitter/nvim-treesitter.git
synced 2026-07-17 19:00:02 -04:00
build: add a rockspec
so that users can install this via luarocks
This commit is contained in:
parent
05a07e6e34
commit
965a74f76a
1 changed files with 32 additions and 0 deletions
32
contrib/nvim-treesitter-scm-1.rockspec
Normal file
32
contrib/nvim-treesitter-scm-1.rockspec
Normal file
|
|
@ -0,0 +1,32 @@
|
||||||
|
local MODREV, SPECREV = "scm", "-1"
|
||||||
|
rockspec_format = "3.0"
|
||||||
|
package = "nvim-treesitter"
|
||||||
|
version = MODREV .. SPECREV
|
||||||
|
|
||||||
|
description = {
|
||||||
|
summary = "Nvim Treesitter configurations and abstraction layer",
|
||||||
|
labels = { "neovim"},
|
||||||
|
homepage = "https://github.com/nvim-treesitter/nvim-treesitter",
|
||||||
|
license = "Apache-2.0",
|
||||||
|
}
|
||||||
|
|
||||||
|
dependencies = {
|
||||||
|
"lua >= 5.1, < 5.4",
|
||||||
|
}
|
||||||
|
|
||||||
|
source = {
|
||||||
|
url = "http://github.com/nvim-treesitter/nvim-treesitter/archive/v" .. MODREV .. ".zip",
|
||||||
|
}
|
||||||
|
|
||||||
|
if MODREV == 'scm' then
|
||||||
|
source = {
|
||||||
|
url = 'git://github.com/nvim-treesitter/nvim-treesitter',
|
||||||
|
}
|
||||||
|
end
|
||||||
|
|
||||||
|
build = {
|
||||||
|
type = "builtin",
|
||||||
|
copy_directories = {
|
||||||
|
'plugin'
|
||||||
|
}
|
||||||
|
}
|
||||||
Loading…
Add table
Add a link
Reference in a new issue