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