1
0
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:
wsdjeg 2022-09-10 17:47:03 +08:00
parent 3b456ab721
commit 339c22813f
3 changed files with 3 additions and 3 deletions

View File

@ -6,7 +6,7 @@
" License: GPLv3 " License: GPLv3
"============================================================================= "=============================================================================
if has('lua') || has('nvim-0.5.0') if has('nvim-0.5.0')
function! SpaceVim#logger#info(msg) abort function! SpaceVim#logger#info(msg) abort
lua require("spacevim.logger").info( lua require("spacevim.logger").info(
\ require("spacevim").eval("a:msg") \ require("spacevim").eval("a:msg")

View File

@ -11,7 +11,7 @@ set cpo&vim
scriptencoding utf-8 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 function! SpaceVim#plugins#a#alt(request_parse, ...) abort
lua require("spacevim.plugin.a").alt( lua require("spacevim.plugin.a").alt(
\ require("spacevim").eval("a:request_parse"), \ require("spacevim").eval("a:request_parse"),

View File

@ -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 function! SpaceVim#plugins#projectmanager#complete_project(ArgLead, CmdLine, CursorPos) abort
return luaeval('require("spacevim.plugin.projectmanager").complete(' return luaeval('require("spacevim.plugin.projectmanager").complete('
\ .'require("spacevim").eval("a:ArgLead"),' \ .'require("spacevim").eval("a:ArgLead"),'