xolox / vim-lua-ftplugin

Lua file type plug-in for the Vim text editor
http://peterodding.com/code/vim/lua-ftplugin
187 stars 27 forks source link

Re-add support for `g:lua_path` #33

Open blueyed opened 9 years ago

blueyed commented 9 years ago

Commit 6d68f3d removed the functionality to define/override $LUA_PATH, but the documentation still mentions it.

This also adds support for caching in xolox#lua#getsearchpath, which appears to be useful anyway.

I could also imagine a way to support extending the path (prepending and/or appending to it).

My use case is the awesome window manager, which adjusts its path internally, and changes are not reflected in $LUA_PATH or the lua interpreter.