1
0
mirror of https://github.com/SpaceVim/SpaceVim.git synced 2025-02-03 01:00:05 +08:00

Fix repl windows && lua repl command

This commit is contained in:
Shidong Wang 2019-01-20 23:16:04 +08:00
parent 3acb74eb55
commit 859aad6cca
2 changed files with 3 additions and 1 deletions

View File

@ -57,6 +57,8 @@ function! SpaceVim#layers#lang#lua#config() abort
else
if executable('luap')
call SpaceVim#plugins#repl#reg('lua', 'luap')
elseif !empty(luaexe)
call SpaceVim#plugins#repl#reg('lua', luaexe)
else
call SpaceVim#plugins#repl#reg('lua', 'lua')
endif

View File

@ -171,7 +171,7 @@ function! s:open_windows() abort
botright split __REPL__
let lines = &lines * 30 / 100
exe 'resize ' . lines
setlocal buftype=nofile bufhidden=wipe nobuflisted nolist noswapfile nowrap cursorline nospell nonu norelativenumber
setlocal buftype=nofile bufhidden=wipe nobuflisted nolist noswapfile nowrap cursorline nospell nonu norelativenumber winfixheight
set filetype=SpaceVimREPL
nnoremap <silent><buffer> q :call <SID>close()<cr>
let s:bufnr = bufnr('%')