1
0
mirror of https://github.com/SpaceVim/SpaceVim.git synced 2025-01-24 05:40:05 +08:00
SpaceVim/docs/layers/checkers.md

59 lines
2.5 KiB
Markdown
Raw Normal View History

2017-10-25 10:27:25 +08:00
---
title: "SpaceVim checkers layer"
2017-12-02 23:23:58 +08:00
description: "This layer provides syntax checking feature"
2017-10-25 10:27:25 +08:00
---
# [SpaceVim Layers:](https://spacevim.org/layers) checkers
<!-- vim-markdown-toc GFM -->
- [Description](#description)
- [Layer Installation](#layer-installation)
- [Configuration](#configuration)
- [Key bindings](#key-bindings)
<!-- vim-markdown-toc -->
## Description
2017-05-11 21:10:20 +08:00
This layer provides syntax checking feature.
2017-10-25 10:27:25 +08:00
## Layer Installation
2017-05-11 21:10:20 +08:00
checkers layer is loaded by default.
2017-10-25 10:27:25 +08:00
## Configuration
2017-05-11 21:10:20 +08:00
2017-10-25 09:53:05 +08:00
| Name | default value | description |
| ---------------------------- | ------------- | -------------------------------------------------------- |
| `g:spacevim_enable_neomake` | 1 | Use neomake as default checking tools |
2017-10-25 10:27:25 +08:00
| `g:spacevim_enable_ale` | 0 | Use ale as default checking tools |
2017-10-25 09:53:05 +08:00
| `g:spacevim_lint_on_the_fly` | 0 | Syntax checking on the fly feature, disabled by default. |
2017-05-11 21:14:48 +08:00
2017-10-25 09:53:05 +08:00
**NOTE:** if you want to use ale, you need:
```viml
let g:spacevim_enable_neomake = 0
let g:spacevim_enable_ale = 1
```
2017-05-11 21:14:48 +08:00
2017-10-25 09:53:05 +08:00
and if you want to use syntastic, set this two options to 0.
2017-10-25 10:27:25 +08:00
## Key bindings
2017-05-11 21:14:48 +08:00
2017-10-25 09:53:05 +08:00
| Key | mode | description |
| --------- | ------ | ------------------------------------------------------------ |
2017-10-25 10:27:25 +08:00
| `SPC e .` | Normal | open error-transient-state |
2017-10-25 09:53:05 +08:00
| `SPC e c` | Normal | clear errors |
| `SPC e h` | Normal | describe current checker |
| `SPC e n` | Normal | jump to the position of next error |
| `SPC e N` | Normal | jump to the position of previous error |
| `SPC e p` | Normal | jump to the position of previous error |
| `SPC e l` | Normal | display a list of all the errors |
| `SPC e L` | Normal | display a list of all the errors and focus the errors buffer |
| `SPC e e` | Normal | explain the error at point |
2017-10-25 22:56:21 +08:00
| `SPC e s` | Normal | set syntax checker (TODO) |
| `SPC e S` | Normal | set syntax checker executable (TODO) |
2017-10-25 09:53:05 +08:00
| `SPC e v` | Normal | verify syntax setup |
| `SPC t s` | Normal | toggle syntax |