mirror of
https://github.com/SpaceVim/SpaceVim.git
synced 2025-01-24 05:30:07 +08:00
Add docs
This commit is contained in:
parent
ebe78b3d53
commit
17f3ca73d0
42
docs/layers/lang/javascript.md
Normal file
42
docs/layers/lang/javascript.md
Normal file
@ -0,0 +1,42 @@
|
|||||||
|
---
|
||||||
|
title: "SpaceVim lang#javascript layer"
|
||||||
|
---
|
||||||
|
|
||||||
|
# [SpaceVim Layers:](https://spacevim.org/layers) lang#javascript
|
||||||
|
|
||||||
|
<!-- vim-markdown-toc GFM -->
|
||||||
|
|
||||||
|
- [Description](#description)
|
||||||
|
- [Layer Installation](#layer-installation)
|
||||||
|
- [Features](#features)
|
||||||
|
- [Layer configuration](#layer-configuration)
|
||||||
|
|
||||||
|
<!-- vim-markdown-toc -->
|
||||||
|
|
||||||
|
## Description
|
||||||
|
|
||||||
|
This layer is for JavaScript development.
|
||||||
|
|
||||||
|
## Layer Installation
|
||||||
|
|
||||||
|
To use this configuration layer, add `call SpaceVim#layers#load('lang#javascript')` to your custom configuration file.
|
||||||
|
|
||||||
|
## Features
|
||||||
|
|
||||||
|
- auto-completion
|
||||||
|
- syntax checking
|
||||||
|
- goto definition
|
||||||
|
- refernce finder
|
||||||
|
|
||||||
|
## Layer configuration
|
||||||
|
|
||||||
|
`auto_fix`: auto fix problems when save files, disabled by default. if you need this feature, you can load this layer via:
|
||||||
|
|
||||||
|
```vim
|
||||||
|
call SpaceVim#layers#load('lang#javascript',
|
||||||
|
\ {
|
||||||
|
\ 'auto_fix' : 1,
|
||||||
|
\ }
|
||||||
|
\ )
|
||||||
|
|
||||||
|
```
|
Loading…
Reference in New Issue
Block a user