(hopefully) Fix lua search path

This commit is contained in:
Talia 2018-04-25 09:41:36 +02:00
parent b65951d14b
commit 776be82020

2
vimrc
View file

@ -545,7 +545,7 @@ vnoremap <C-CR> ""y<CR>
\ :call setreg("\"", substitute(getreg("\""), "\n", "", ""), "v")<CR>
\ :<C-r>"<CR>`<
let $LUA_PATH = expand("<sfile>:p:h")."/lua/?.lua"
let $LUA_PATH = $LUA_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 -"