1
0
mirror of https://github.com/SpaceVim/SpaceVim.git synced 2025-01-23 22:30:04 +08:00
SpaceVim/docs/development.md

57 lines
1.3 KiB
Markdown
Raw Normal View History

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
2017-02-15 23:59:05 +08:00
SpaceVim provide a lot of public [APIs](https://spacevim.org/documentation#apis), you can create plugins base on this APIs. also you can add a badge to the README.md of your plugin.
2017-02-14 23:15:22 +08:00
![](https://img.shields.io/badge/build%20with-SpaceVim-ff69b4.svg)
markdown
2017-02-15 23:56:04 +08:00
2017-02-14 23:15:22 +08:00
```md
2017-02-15 23:56:04 +08:00
[![](https://spacevim.org/img/build-with-SpaceVim.svg)](https://spacevim.org)
2017-02-14 23:15:22 +08:00
```
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>