1
0
mirror of https://github.com/SpaceVim/SpaceVim.git synced 2025-04-14 23:49:19 +08:00

Add clipboard check and lua check

This commit is contained in:
wsdjeg 2017-02-03 16:09:19 +08:00
parent a28f75171e
commit efb9b53e5e
2 changed files with 42 additions and 0 deletions

View File

@ -0,0 +1,24 @@
function! SpaceVim#health#clipboard#check() abort
let result = ['SpaceVim clipboard support check report:']
call add(result, 'Checking +clipboard:')
if has('nvim')
if has('clipboard')
call add(result, ' SUCCEED!')
else
call add(result, ' Failed : to support +clipboard, you need has one of following clipboard tools in your $PATH:')
call add(result, ' 1. xclip')
call add(result, ' 2. xsel')
call add(result, ' 3. pbcopy/pbpaste (Mac OS X)')
call add(result, ' 4. lemonade (for SSH) https://github.com/pocke/lemonade')
call add(result, ' 5. doitclient (for SSH) http://www.chiark.greenend.org.uk/~sgtatham/doit/')
endif
else
if has('clipboard')
call add(result, ' SUCCEED!')
else
call add(result, ' Failed : to support +clipboard, you need recompile your vim with +clipboard support.')
endif
endif
return result
endfunction

View File

@ -0,0 +1,18 @@
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