mirror of
https://github.com/SpaceVim/SpaceVim.git
synced 2025-02-14 07:07:58 +08:00
36 lines
1.2 KiB
VimL
36 lines
1.2 KiB
VimL
"=============================================================================
|
|
" floobits.vim --- SpaceVim floobits layer
|
|
" Copyright (c) 2016-2022 Wang Shidong & Contributors
|
|
" Author: Wang Shidong < wsdjeg@outlook.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#health() abort
|
|
call SpaceVim#layers#floobits#plugins()
|
|
call SpaceVim#layers#floobits#config()
|
|
return 1
|
|
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
|
|
|