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

2.7 KiB

title description
SpaceVim checkers layer This layer provides syntax checking feature

SpaceVim Layers: checkers

Description

This layer provides syntax checking feature.

Layer Installation

checkers layer is loaded by default.

Configuration

By default, the error will be display below current line, if you want to disabled this feature, you may need to load this layer with show_cursor_error to 0.

call SpaceVim#layers#load('checkers', {
    \ 'show_cursor_error' : 0,
    \ })
Name default value description
g:spacevim_enable_neomake 1 Use neomake as default checking tools
g:spacevim_enable_ale 0 Use ale as default checking tools
g:spacevim_lint_on_the_fly 0 Syntax checking on the fly feature, disabled by default.

NOTE: if you want to use ale, you need:

let g:spacevim_enable_neomake = 0
let g:spacevim_enable_ale = 1

and if you want to use syntastic, set this two options to 0.

Key bindings

Key mode description
SPC e . Normal open error-transient-state
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
SPC e s Normal set syntax checker (TODO)
SPC e S Normal set syntax checker executable (TODO)
SPC e v Normal verify syntax setup
SPC t s Normal toggle syntax