mirror of
https://github.com/SpaceVim/SpaceVim.git
synced 2025-02-09 12:50:05 +08:00
Fix repl windows && lua repl command
This commit is contained in:
parent
3acb74eb55
commit
859aad6cca
@ -57,6 +57,8 @@ function! SpaceVim#layers#lang#lua#config() abort
|
|||||||
else
|
else
|
||||||
if executable('luap')
|
if executable('luap')
|
||||||
call SpaceVim#plugins#repl#reg('lua', 'luap')
|
call SpaceVim#plugins#repl#reg('lua', 'luap')
|
||||||
|
elseif !empty(luaexe)
|
||||||
|
call SpaceVim#plugins#repl#reg('lua', luaexe)
|
||||||
else
|
else
|
||||||
call SpaceVim#plugins#repl#reg('lua', 'lua')
|
call SpaceVim#plugins#repl#reg('lua', 'lua')
|
||||||
endif
|
endif
|
||||||
|
@ -171,7 +171,7 @@ function! s:open_windows() abort
|
|||||||
botright split __REPL__
|
botright split __REPL__
|
||||||
let lines = &lines * 30 / 100
|
let lines = &lines * 30 / 100
|
||||||
exe 'resize ' . lines
|
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
|
set filetype=SpaceVimREPL
|
||||||
nnoremap <silent><buffer> q :call <SID>close()<cr>
|
nnoremap <silent><buffer> q :call <SID>close()<cr>
|
||||||
let s:bufnr = bufnr('%')
|
let s:bufnr = bufnr('%')
|
||||||
|
Loading…
Reference in New Issue
Block a user