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:
parent
3acb74eb55
commit
859aad6cca
@ -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
|
||||
|
@ -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('%')
|
||||
|
Loading…
Reference in New Issue
Block a user