fix(lua): make core vim module not dependent on $VIMRUNTIME functions

fixes #15524

Note: this is obviously a quickfix. A scalabe solution will
involve being able to specify a _list_ of modules to be
put into packages.preload, without needing to manually copypasta
a blurb of C code. Perhaps even involving bytecode for
static builds (to speedup initialization)
This commit is contained in:
Björn Linse
2021-08-30 17:31:44 +02:00
parent 3ab73ff81f
commit 6f2d0ea311
3 changed files with 32 additions and 3 deletions

View File

@@ -642,6 +642,4 @@ vim._expand_pat_get_parts = function(lua_string)
return parts, search_index
end
pcall(require, 'vim._meta')
return module