1
0
mirror of https://github.com/SpaceVim/SpaceVim.git synced 2025-02-03 09:30:06 +08:00

Add chat config

This commit is contained in:
wsdjeg 2017-12-07 20:54:47 +08:00
parent 8b84e4959a
commit 8ad33a19b8

View File

@ -4,7 +4,14 @@ function! SpaceVim#layers#chat#plugins() abort
\ ]
endfunction
let s:BASE64 = SpaceVim#api#import('data#base64')
function! SpaceVim#layers#chat#config()
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
call SpaceVim#mapping#space#def('nnoremap', ['a', 'q'], 'call chat#qq#start()', 'Start QQ server', 1)
call SpaceVim#mapping#space#def('nnoremap', ['a', 'o'], 'call chat#chatting#OpenMsgWin()', 'open spacevim community', 1)
endfunction