mirror of
https://github.com/SpaceVim/SpaceVim.git
synced 2025-02-15 15:19:27 +08:00
28 lines
899 B
VimL
28 lines
899 B
VimL
"=============================================================================
|
|
" lua.vim --- SpaceVim lua checker
|
|
" Copyright (c) 2016-2022 Wang Shidong & Contributors
|
|
" Author: Wang Shidong < wsdjeg@outlook.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:
|