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 +writebackup
I've got Lua installed and can even run it as an external command from within Vim:
:!lua
Lua 5.3.3 Copyright (C) 1994-2016 Lua.org, PUC-Rio
> print("hello")
hello
>
However,has("lua")
returns 0
:
:echo has("lua")
0
And attempting to use it through Vim's interface fails:
:lua print("hello")
E370: Could not load library liblua.5.2.dylib
Lua 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.