1
0
mirror of https://github.com/SpaceVim/SpaceVim.git synced 2025-02-03 01:50:05 +08:00

Add floobits layer (#1697)

* Add floobits layer

* Add floobits layer

* Add major key bindings for floobits layer

* Update floobits layer

* Update floobit layer
This commit is contained in:
Wang Shidong 2018-06-18 21:04:24 +08:00 committed by GitHub
parent db524ed222
commit 7f0723e93e
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
3 changed files with 75 additions and 1 deletions

View File

@ -28,7 +28,6 @@ function! SpaceVim#layers#edit#plugins() abort
\ ['easymotion/vim-easymotion'],
\ ['haya14busa/vim-easyoperator-line'],
\ ['editorconfig/editorconfig-vim', { 'merged' : 0}],
\ ['floobits/floobits-neovim', { 'on_cmd' : ['FlooJoinWorkspace','FlooShareDirPublic','FlooShareDirPrivate']}],
\ ['osyo-manga/vim-jplus', { 'on_map' : '<Plug>(jplus' }],
\ ['godlygeek/tabular', { 'on_cmd' : 'Tabularize'}],
\ ['ntpeters/vim-better-whitespace', { 'on_cmd' : 'StripWhitespace'}],

View File

@ -0,0 +1,30 @@
"=============================================================================
" floobits.vim --- SpaceVim floobits layer
" Copyright (c) 2016-2017 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

45
docs/layers/floobits.md Normal file
View File

@ -0,0 +1,45 @@
---
title: "SpaceVim floobits layer"
description: "This layer adds support for the peer programming tool floobits to SpaceVim."
---
# [SpaceVim Layers:](https://spacevim.org/layers) floobits
<!-- vim-markdown-toc GFM -->
- [Intro](#intro)
- [Features](#features)
- [Install](#install)
- [Key bindings](#key-bindings)
<!-- vim-markdown-toc -->
## Intro
This layer adds support for the peer programming tool floobits to SpaceVim.
NOTE: This layer only support neovim.
## Features
- Adjust floobits configuration file in the root of a project.
- Creation of floobits workspaces and populating it with content.
- Highlight cursor position for all users in current workspace.
- Follow recent changes by other users
## Install
To use this configuration layer, add following snippet to your custom configuration file.
```toml
[[layers]]
name = "floobits"
```
## Key bindings
| Key bindings | Discription |
| ------------ | --------------------------------------------------------- |
| `SPC m f j` | Join workspace |
| `SPC m f t` | Toggle follow mode |
| `SPC m f s` | Summon everyone in the workspace to your cursor position. |