Change lua search path

This commit is contained in:
Talia 2018-07-13 21:05:04 +02:00
parent c7bd7c2c3c
commit f39b3fe5c0

2
vimrc
View file

@ -608,7 +608,7 @@ vnoremap <C-CR> ""y<CR>
\ :call setreg("\"", substitute(getreg("\""), "\n", "", ""), "v")<CR>
\ :<C-r>"<CR>`<
let $LUA_PATH = $LUA_PATH.";".expand("<sfile>:p:h")."/lua/?.lua"
let $LUA_PATH = system("lua -e 'print(package.path)'").";".expand("<sfile>:p:h")."/lua/?.lua"
let g:mooncompile = "!moonc ".expand("<sfile>:p:h")."/lua"
command! Mooncompile silent exec g:mooncompile
let g:exe_prg = "moonc -- \| lua -l vim -"