FreeBSD LuaSnip build function compatibility (use command gmake if available)

This commit is contained in:
Imbus 2024-10-27 05:23:40 +01:00
parent 1fdb363a76
commit 960ef4612e

View file

@ -12,6 +12,12 @@ return { -- Autocompletion
if vim.fn.has 'win32' == 1 or vim.fn.executable 'make' == 0 then if vim.fn.has 'win32' == 1 or vim.fn.executable 'make' == 0 then
return return
end end
-- Compatibility check for *BSD/Linux
if vim.fn.executable 'gmake' then
return 'gmake install_jsregexp'
end
return 'make install_jsregexp' return 'make install_jsregexp'
end)(), end)(),
dependencies = { dependencies = {