mirror of
https://github.com/SpaceVim/SpaceVim.git
synced 2025-02-03 00:00:04 +08:00
fix(lua): use lua only for neovim
This commit is contained in:
parent
3b456ab721
commit
339c22813f
@ -6,7 +6,7 @@
|
||||
" License: GPLv3
|
||||
"=============================================================================
|
||||
|
||||
if has('lua') || has('nvim-0.5.0')
|
||||
if has('nvim-0.5.0')
|
||||
function! SpaceVim#logger#info(msg) abort
|
||||
lua require("spacevim.logger").info(
|
||||
\ require("spacevim").eval("a:msg")
|
||||
|
@ -11,7 +11,7 @@ set cpo&vim
|
||||
scriptencoding utf-8
|
||||
|
||||
|
||||
if has('lua') || has('nvim-0.5.0')
|
||||
if has('nvim-0.5.0')
|
||||
function! SpaceVim#plugins#a#alt(request_parse, ...) abort
|
||||
lua require("spacevim.plugin.a").alt(
|
||||
\ require("spacevim").eval("a:request_parse"),
|
||||
|
@ -8,7 +8,7 @@
|
||||
|
||||
|
||||
|
||||
if has('lua') || has('nvim-0.5.0')
|
||||
if has('nvim-0.5.0')
|
||||
function! SpaceVim#plugins#projectmanager#complete_project(ArgLead, CmdLine, CursorPos) abort
|
||||
return luaeval('require("spacevim.plugin.projectmanager").complete('
|
||||
\ .'require("spacevim").eval("a:ArgLead"),'
|
||||
|
Loading…
Reference in New Issue
Block a user