mirror of
https://github.com/SpaceVim/SpaceVim.git
synced 2025-03-26 12:10:32 +08:00
28 lines
898 B
VimL
28 lines
898 B
VimL
"=============================================================================
|
|
" lua.vim --- SpaceVim lua checker
|
|
" Copyright (c) 2016-2021 Wang Shidong & Contributors
|
|
" Author: Wang Shidong < wsdjeg at 163.com >
|
|
" URL: https://spacevim.org
|
|
" License: GPLv3
|
|
"=============================================================================
|
|
function! SpaceVim#health#lua#check() abort
|
|
let result = ['SpaceVim lua support check report:']
|
|
call add(result, 'Checking +lua:')
|
|
if has('nvim')
|
|
if has('lua')
|
|
call add(result, ' SUCCEED!')
|
|
else
|
|
call add(result, ' Failed : Known issue, neovim do not support lua now.')
|
|
endif
|
|
else
|
|
if has('lua')
|
|
call add(result, ' SUCCEED!')
|
|
else
|
|
call add(result, ' Failed : to support +lua, you need recompile your vim with +lua support.')
|
|
endif
|
|
endif
|
|
return result
|
|
endfunction
|
|
|
|
" vim:set et sw=2:
|