1
0
mirror of https://github.com/SpaceVim/SpaceVim.git synced 2025-02-19 09:23:44 +08:00
SpaceVim/autoload/SpaceVim/layers/floobits.vim
2019-06-09 14:11:17 +08:00

31 lines
1.1 KiB
VimL

"=============================================================================
" floobits.vim --- SpaceVim floobits layer
" Copyright (c) 2016-2019 Wang Shidong & Contributors
" Author: Wang Shidong < wsdjeg at 163.com >
" URL: https://spacevim.org
" License: GPLv3
"=============================================================================
function! SpaceVim#layers#floobits#plugins() abort
let plugins = [
\ ['floobits/floobits-neovim', { 'on_cmd' : [
\ 'FlooJoinWorkspace',
\ 'FlooShareDirPublic',
\ 'FlooShareDirPrivate'
\ ]}],
\ ]
return plugins
endfunction
function! SpaceVim#layers#floobits#config() abort
let g:_spacevim_mappings_space.m.f = {'name' : '+floobits'}
call SpaceVim#mapping#space#def('nnoremap', ['m', 'f', 'j'], 'FlooJoinWorkspace',
\ 'Join workspace', 1)
call SpaceVim#mapping#space#def('nnoremap', ['m', 'f', 't'], 'FlooToggleFollowMode',
\ 'Toggle follow mode', 1)
call SpaceVim#mapping#space#def('nnoremap', ['m', 'f', 's'], 'FlooSummon',
\ 'Summon everyone', 1)
endfunction