Change lua search path
This commit is contained in:
parent
c7bd7c2c3c
commit
f39b3fe5c0
1 changed files with 1 additions and 1 deletions
2
vimrc
2
vimrc
|
@ -608,7 +608,7 @@ vnoremap <C-CR> ""y<CR>
|
||||||
\ :call setreg("\"", substitute(getreg("\""), "\n", "", ""), "v")<CR>
|
\ :call setreg("\"", substitute(getreg("\""), "\n", "", ""), "v")<CR>
|
||||||
\ :<C-r>"<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"
|
let g:mooncompile = "!moonc ".expand("<sfile>:p:h")."/lua"
|
||||||
command! Mooncompile silent exec g:mooncompile
|
command! Mooncompile silent exec g:mooncompile
|
||||||
let g:exe_prg = "moonc -- \| lua -l vim -"
|
let g:exe_prg = "moonc -- \| lua -l vim -"
|
||||||
|
|
Loading…
Reference in a new issue