1
0
mirror of https://github.com/SpaceVim/SpaceVim.git synced 2025-02-02 23:20:04 +08:00

Update checkers layer doc (#3832)

This commit is contained in:
Wang Shidong 2020-09-24 00:23:11 +08:00 committed by GitHub
parent 62de9d69a4
commit aa51aeef28
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
4 changed files with 11 additions and 4 deletions

View File

@ -294,7 +294,7 @@ SpaceVim 默认安装了一些插件,如果需要禁用某个插件,可以
```vim
function! myspacevim#before() abort
let g:neomake_enabled_c_makers = ['clang']
let g:neomake_c_enabled_makers = ['clang']
nnoremap jk <esc>
endfunction

View File

@ -44,10 +44,14 @@ SpaceVim 选项:
| 选项名称 | 默认值 | 描述 |
| ----------------- | ------ | ----------------------------------- |
| `enable_neomake` | true | 使用 Neomake 作为默认的语法检查插件 |
| `enable_neomake` | true | 使用 [neomake](https://github.com/neomake/neomake) 作为默认的语法检查插件 |
| `enable_ale` | false | 使用 Ale 作为默认语法检查插件 |
| `lint_on_the_fly` | false | 启用实时语法检查 |
Neomake 的设置需要使用启动函数,在启动函数里,可以使用 Vim 脚本,
关于 neomake 所有的配置相关信息,可以查阅 `:h neomake`
**NOTE:** 如果你需要使用 Ale 作为默认检查工具SpaceVim 选项需要加入:
```toml

View File

@ -309,7 +309,7 @@ with contents for example
```vim
function! myspacevim#before() abort
let g:neomake_enabled_c_makers = ['clang']
let g:neomake_c_enabled_makers = ['clang']
nnoremap jk <Esc>
endfunction

View File

@ -46,10 +46,13 @@ the following options are SpaceVim option, you need to config them in `[options]
| Name | default value | description |
| ----------------- | ------------- | -------------------------------------------------------- |
| `enable_neomake` | `true` | Use neomake as default checking tools |
| `enable_neomake` | `true` | Use [neomake](https://github.com/neomake/neomake) as default checking tools |
| `enable_ale` | `false` | Use ale as default checking tools |
| `lint_on_the_fly` | `false` | Syntax checking on the fly feature, disabled by default. |
If you want to config neomake, you can use bootstrap functions. Within bootstrap functions,
you can use vim script. For all the info about neomake configuration, please checkout `:h neomake`.
**NOTE:** if you want to use ale, you need:
```toml