Skip to content

Commit

Permalink
feat: add rockspec
Browse files Browse the repository at this point in the history
telescope.nvim is a common dependency across Neovim plugins.
Using luarocks may alleviate the need for users to specify their
plugins' dependencies in their plugin manager.
(e.g., vim-plug or packer).

See also:
https://teto.github.io/posts/2021-09-17-neovim-plugin-luarocks.html
  • Loading branch information
mrcjkb committed Dec 18, 2022
1 parent cabf991 commit 27820b2
Showing 1 changed file with 43 additions and 0 deletions.
43 changes: 43 additions & 0 deletions telescope.nvim-scm-1.rockspec
Original file line number Diff line number Diff line change
@@ -0,0 +1,43 @@
local MODREV, SPECREV = "scm", "-1"
rockspec_format = "3.0"
package = "telescope.nvim"
version = MODREV .. SPECREV

description = {
summary = "Find, Filter, Preview, Pick. All lua, all the time.",
detailed = [[
A highly extendable fuzzy finder over lists.
Built on the latest awesome features from neovim core.
Telescope is centered around modularity, allowing for easy customization.
]],
labels = { "neovim", "plugin", },
homepage = "https://github.com/nvim-telescope/telescope.nvim",
license = "MIT",
}

dependencies = {
"lua == 5.1, < 5.4",
"plenary.nvim",
}

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

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

build = {
type = "builtin",
copy_directories = {
"doc",
"ftplugin",
"plugin",
"scripts",
"autoload",
"data",
}
}

0 comments on commit 27820b2

Please sign in to comment.