2017-02-12 16:36:17 +08:00
|
|
|
---
|
|
|
|
title: "Development"
|
|
|
|
---
|
|
|
|
|
2017-02-10 00:52:19 +08:00
|
|
|
# Support SpaceVim
|
2017-02-07 01:51:23 +08:00
|
|
|
|
2017-02-10 00:52:19 +08:00
|
|
|
## Development happens in the GitHub repository.
|
2017-02-07 01:51:23 +08:00
|
|
|
|
|
|
|
[![Throughput Graph](https://graphs.waffle.io/SpaceVim/SpaceVim/throughput.svg)](https://github.com/SpaceVim/SpaceVim)
|
|
|
|
|
2017-02-10 00:52:19 +08:00
|
|
|
## Report bugs
|
2017-02-07 01:51:23 +08:00
|
|
|
|
|
|
|
If you get any issues, please open an issue with the ISSUE_TEMPLATE. It is useful for me to debug for this issue.
|
|
|
|
|
2017-02-10 00:52:19 +08:00
|
|
|
## Contribute Layers
|
2017-02-10 22:05:19 +08:00
|
|
|
|
|
|
|
1. fork SpaceVim repo
|
|
|
|
2. add a layer file `autoload/SpaceVim/layers/foo.vim` for `foo` layer.
|
|
|
|
3. edit layer file, check out the example below:
|
|
|
|
|
|
|
|
```vim
|
|
|
|
function! SpaceVim#layers#foo#plugins() abort
|
2017-02-12 19:21:46 +08:00
|
|
|
let plugins = []
|
|
|
|
call add(plugins, ['Shougo/foo.vim', {'option' : 'value'}])
|
|
|
|
return plugins
|
2017-02-10 22:05:19 +08:00
|
|
|
endfunction
|
|
|
|
|
|
|
|
|
|
|
|
function! SpaceVim#layers#foo#config() abort
|
2017-02-12 19:21:46 +08:00
|
|
|
" here you can set some value or mappings
|
2017-02-10 22:05:19 +08:00
|
|
|
endfunction
|
|
|
|
```
|
|
|
|
|
|
|
|
4. send PR to SpaceVim.
|
2017-02-12 19:21:46 +08:00
|
|
|
|
2017-02-14 23:15:22 +08:00
|
|
|
## Build with SpaceVim
|
|
|
|
|
|
|
|
SpaceVim provide a lot of public APIs, you can create plugins base on this APIs. also you can add a badge to the README of your plugin.
|
|
|
|
|
|
|
|
![](https://img.shields.io/badge/build%20with-SpaceVim-ff69b4.svg)
|
|
|
|
|
|
|
|
markdown
|
|
|
|
```md
|
|
|
|
[![](https://img.shields.io/badge/build%20with-SpaceVim-ff69b4.svg)](https://spacevim.org)
|
|
|
|
```
|
|
|
|
|
2017-02-12 19:21:46 +08:00
|
|
|
## Changelog
|
|
|
|
|
|
|
|
<ul>
|
2017-02-12 19:36:33 +08:00
|
|
|
{% for post in site.categories.changelog %}
|
2017-02-12 19:21:46 +08:00
|
|
|
<li>
|
|
|
|
<a href="{{ post.url }}">{{ post.title }}</a>
|
|
|
|
</li>
|
|
|
|
{% endfor %}
|
|
|
|
</ul>
|