Skip to content

Commit

Permalink
fix: set default features to luajit, misc luarocks spec fixes
Browse files Browse the repository at this point in the history
  • Loading branch information
Saghen committed Nov 21, 2024
1 parent 8246a17 commit c3f041a
Show file tree
Hide file tree
Showing 2 changed files with 25 additions and 25 deletions.
1 change: 1 addition & 0 deletions Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,7 @@ edition = "2021"
crate-type = ["cdylib"]

[features]
default = ["luajit"]
luajit = ["mlua/luajit"]
lua51 = ["mlua/lua51"]

Expand Down
49 changes: 24 additions & 25 deletions blink.cmp-scm-1.rockspec
Original file line number Diff line number Diff line change
@@ -1,46 +1,45 @@
local MODREV, SPECREV = "scm", "-1"
rockspec_format = "3.0"
package = "blink.cmp"
local MODREV, SPECREV = 'scm', '-1'
rockspec_format = '3.0'
package = 'blink.cmp'
version = MODREV .. SPECREV

description = {
summary = "Performant, batteries-included completion plugin for Neovim",
labels = { "neovim" },
homepage = "https://github.com/Saghen/blink.cmp",
license = "MIT",
summary = 'Performant, batteries-included completion plugin for Neovim',
labels = { 'neovim' },
homepage = 'https://github.com/Saghen/blink.cmp',
license = 'MIT',
}

source = {
url = "http://github.com/Saghen/blink-cmp/archive/v" .. MODREV .. ".zip",
url = 'https://github.com/Saghen/blink.cmp/archive/v' .. MODREV .. '.zip',
}

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

dependencies = {
"lua == 5.1",
'lua == 5.1',
}

test_dependencies = {
"nlua",
'nlua', -- neovim lua interpreter
}

build_dependencies = {
"luarocks-build-rust-mlua",
'luarocks-build-rust-mlua',
}

build = {
type = "rust-mlua",
modules = {
"blink_cmp_fuzzy",
type = 'rust-mlua',
modules = {
'blink_cmp_fuzzy',
},
install = {
lua = {
['blink-cmp.init'] = 'lua/blink-cmp.lua',
},
install = {
lua = {
["blink-cmp.init"] = "lua/blink-cmp.lua",
},
},
features = { "lua51" }
},
default_features = false,
features = { 'lua51' },
}

0 comments on commit c3f041a

Please sign in to comment.