mirror of
https://github.com/SpaceVim/SpaceVim.git
synced 2025-01-23 22:40:04 +08:00
Add doc for debug plugin
This commit is contained in:
parent
5030e0f1ad
commit
8c57664aff
@ -19,6 +19,7 @@ description: "General documentation about how to using SpaceVim, including the q
|
||||
- [Bootstrap Functions](#bootstrap-functions)
|
||||
- [Vim Compatible Mode](#vim-compatible-mode)
|
||||
- [Private Layers](#private-layers)
|
||||
- [Debug upstream plugins](#debug-upstream-plugins)
|
||||
- [Concepts](#concepts)
|
||||
- [Interface elements](#interface-elements)
|
||||
- [Colorschemes](#colorschemes)
|
||||
@ -289,6 +290,38 @@ In SpaceVim, a layer is a single file. In a layer, for example, `autocomplete` l
|
||||
- `SpaceVim#layers#autocomplete#config()`: layer config, such as key bindings and autocmds.
|
||||
- `SpaceVim#layers#autocomplete#set_variable()`: function for setting layer options.
|
||||
|
||||
### Debug upstream plugins
|
||||
|
||||
If you think one of the built-in plugin has some bugs, and you want to debug that plugin. you can follow these step:
|
||||
|
||||
1. disable this plugin
|
||||
|
||||
for example, disable neomake.vim:
|
||||
|
||||
```toml
|
||||
[option]
|
||||
disabled_plugins = ["neomake.vim"]
|
||||
```
|
||||
|
||||
2. add a forked plugin or add a local plugin
|
||||
|
||||
use toml file to add custom forked plugins:
|
||||
|
||||
```toml
|
||||
[[custom_plugins]]
|
||||
name = 'wsdjeg/neomake.vim'
|
||||
# note: you need to disable merged feature
|
||||
merged = false
|
||||
```
|
||||
|
||||
use `bootstrap_before` function to add local plugin:
|
||||
|
||||
```vim
|
||||
function! myspacevim#before() abort
|
||||
set rtp+=~/path/to/your/localplugin
|
||||
endfunction
|
||||
```
|
||||
|
||||
## Concepts
|
||||
|
||||
**Transient-states**
|
||||
|
Loading…
Reference in New Issue
Block a user