From 859aad6cca399d7f800a86b587d0b009787eca3e Mon Sep 17 00:00:00 2001 From: Shidong Wang Date: Sun, 20 Jan 2019 23:16:04 +0800 Subject: [PATCH] Fix repl windows && lua repl command --- autoload/SpaceVim/layers/lang/lua.vim | 2 ++ autoload/SpaceVim/plugins/repl.vim | 2 +- 2 files changed, 3 insertions(+), 1 deletion(-) diff --git a/autoload/SpaceVim/layers/lang/lua.vim b/autoload/SpaceVim/layers/lang/lua.vim index 4e4ffd2ec..d5549ed57 100644 --- a/autoload/SpaceVim/layers/lang/lua.vim +++ b/autoload/SpaceVim/layers/lang/lua.vim @@ -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 diff --git a/autoload/SpaceVim/plugins/repl.vim b/autoload/SpaceVim/plugins/repl.vim index bc9bc6c64..ae21d674b 100644 --- a/autoload/SpaceVim/plugins/repl.vim +++ b/autoload/SpaceVim/plugins/repl.vim @@ -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 q :call close() let s:bufnr = bufnr('%')