2017-01-14 14:36:36 +08:00
|
|
|
function! SpaceVim#layers#chat#plugins() abort
|
|
|
|
return [
|
2017-01-21 22:21:15 +08:00
|
|
|
\ ['vim-chat/vim-chat',{ 'merged' : 0, 'loadconf' : 1}],
|
2017-01-14 14:36:36 +08:00
|
|
|
\ ]
|
|
|
|
endfunction
|
2017-09-10 00:37:54 +08:00
|
|
|
|
2017-12-07 20:54:47 +08:00
|
|
|
let s:BASE64 = SpaceVim#api#import('data#base64')
|
2017-09-10 00:37:54 +08:00
|
|
|
|
|
|
|
function! SpaceVim#layers#chat#config()
|
2017-12-07 20:54:47 +08:00
|
|
|
let g:chatting_server_ip = s:BASE64.decode('NDUuNzYuMTAwLjQ5')
|
|
|
|
let g:chatting_server_port = 8989
|
|
|
|
if !exists('g:chatting_server_lib')
|
|
|
|
let g:chatting_server_lib = '/home/wsdjeg/SpaceVim/Chatting-server/target/Chatting-1.0-SNAPSHOT.jar'
|
|
|
|
endif
|
2017-09-10 00:37:54 +08:00
|
|
|
call SpaceVim#mapping#space#def('nnoremap', ['a', 'q'], 'call chat#qq#start()', 'Start QQ server', 1)
|
2017-12-07 20:54:47 +08:00
|
|
|
call SpaceVim#mapping#space#def('nnoremap', ['a', 'o'], 'call chat#chatting#OpenMsgWin()', 'open spacevim community', 1)
|
2017-09-10 00:37:54 +08:00
|
|
|
endfunction
|