I'm using MacVim snapshot 134 (on Mac OS X 10.9.5), which has support for Lua:$ vim --version | grep lua+dialog_con_gui  +lua/dyn         +rightleft       +writebackupI've got Lua installed and can even run it as an external command from within Vim::!luaLua 5.3.3  Copyright (C) 1994-2016 Lua.org, PUC-Rio> print(hello)hello>However,has(lua) returns 0::echo has(lua)0And attempting to use it through Vim's interface fails::lua print(hello)E370: Could not load library liblua.5.2.dylibLua library cannot be loaded.How can I get Vim to properly detect Lua? Is this a case of extremely strict required version matching, such that 5.2 means 5.2 period and 5.3.3 is not good enough?I did notice this question over on SO, but that doesn't seem to help, as all the answers say to install a version of Vim with +lua/dyn, which I already have.
How to use Lua in Vim?
macvim;vimscript lua
Christian Brabandt is correct, Vim requires the exact same version it was compiled for.In my case, however, Vim still failed to load liblua.5.2.dylib even after installing Lua 5.2. I fixed that by adding a line to my .vimrc to explicitly tell Vim where to look:set luadll=/path/to/liblua.5.2.dylib