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

Update documentation for adding custom plugins

This commit is contained in:
Shidong Wang 2021-02-10 12:54:10 +08:00
parent 720a0c0a0a
commit a61ae055b1
2 changed files with 17 additions and 0 deletions

View File

@ -255,6 +255,14 @@ SpaceVim 根据需要定义了很多临时快捷键,
merged = false
```
也可以使用仓库克隆的地址,比如:
```toml
[[custom_plugins]]
repo = "https://gitlab.com/code-stats/code-stats-vim.git"
merged = false
```
`one_cmd` 选项使得这个插件延迟加载。
该插件会在第一次执行 `ColorHighlight` 或者 `ColorToggle`
命令时被加载。

View File

@ -279,6 +279,15 @@ to the `custom_plugins` section:
merged = false
```
You can also use the url of the repository, for example:
```toml
[[custom_plugins]]
repo = "https://gitlab.com/code-stats/code-stats-vim.git"
merged = false
```
`on_cmd` option means this plugin will be loaded only when the following commands are called.
`merged` option is used for merging plugins directory. When `merged` is `true`, all files in