From c3f041a46831b54eef6cdb77eec383151b74edf0 Mon Sep 17 00:00:00 2001 From: Liam Dyer Date: Wed, 20 Nov 2024 21:32:12 -0500 Subject: [PATCH] fix: set default features to luajit, misc luarocks spec fixes --- Cargo.toml | 1 + blink.cmp-scm-1.rockspec | 49 ++++++++++++++++++++-------------------- 2 files changed, 25 insertions(+), 25 deletions(-) diff --git a/Cargo.toml b/Cargo.toml index 451849bc..6583e872 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -7,6 +7,7 @@ edition = "2021" crate-type = ["cdylib"] [features] +default = ["luajit"] luajit = ["mlua/luajit"] lua51 = ["mlua/lua51"] diff --git a/blink.cmp-scm-1.rockspec b/blink.cmp-scm-1.rockspec index 6da14020..45e70c06 100644 --- a/blink.cmp-scm-1.rockspec +++ b/blink.cmp-scm-1.rockspec @@ -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' }, }