fix(build): distinguish vim.mpack from global require'mpack'

problem: the api of vim.mpack is not compatible with a system provided mpack
solution: don't require 'mpack' directly from the system path
This commit is contained in:
bfredl
2023-04-20 14:41:47 +02:00
parent dbcd1985d1
commit ffaf74f147
9 changed files with 20 additions and 11 deletions

View File

@@ -1,4 +1,4 @@
local mpack = require('mpack')
local mpack = vim.mpack
if arg[1] == '--help' then
print('Usage: lua genvimvim.lua src/nvim runtime/syntax/vim/generated.vim')