Simplify VisualExe plugin

This commit is contained in:
Talia 2021-01-05 12:00:04 +01:00
parent 84f4e2b7df
commit 2cf196f71f

View file

@ -1,5 +1,4 @@
" --- VISUAL EXECUTE --- " --- VISUAL EXECUTE ---
let $LUA_PATH=expand('<sfile>:p:h:h')."/lua/?.lua;;" let g:exe_prg = 'lua'
let g:exe_prg = 'lua -e "draw=require[[draw]]" -'
vnoremap <CR> :<C-U>exec "'<,'>!".g:exe_prg<CR> vnoremap <CR> :<C-U>exec "'<,'>!".g:exe_prg<CR>
inoremap <C-Space> <C-[>0v$:<C-U>exec "'<,'>!".g:exe_prg<CR> inoremap <C-Space> <C-[>0v$:<C-U>exec "'<,'>!".g:exe_prg<CR>