mirror of
https://github.com/SpaceVim/SpaceVim.git
synced 2025-02-02 21:00:03 +08:00
feat(vim8): use lua plugin for vim8
This commit is contained in:
parent
3dbb200fff
commit
77892cda77
@ -6,7 +6,7 @@
|
||||
" License: GPLv3
|
||||
"=============================================================================
|
||||
|
||||
if $SPACEVIM_LUA && has('nvim-0.5.0')
|
||||
if has('lua') || 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 $SPACEVIM_LUA && has('nvim-0.5.0')
|
||||
if has('lua') || 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 $SPACEVIM_LUA && has('nvim-0.5.0')
|
||||
if has('lua') || 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"),'
|
||||
|
@ -1,5 +1,5 @@
|
||||
Execute ( SpaceVim lua api: data#string ):
|
||||
if $SPACEVIM_LUA != 1
|
||||
if !has('lua') && !has('nvim-0.5.0')
|
||||
finish
|
||||
endif
|
||||
let cmp = SpaceVim#api#import('vim#compatible')
|
||||
|
Loading…
Reference in New Issue
Block a user