2017-09-22 20:59:38 +08:00
|
|
|
---
|
|
|
|
title: "SpaceVim lang#javascript layer"
|
2017-10-09 22:41:31 +08:00
|
|
|
description: "This layer is for JaveScript development"
|
2017-09-22 20:59:38 +08:00
|
|
|
---
|
|
|
|
|
|
|
|
# [SpaceVim Layers:](https://spacevim.org/layers) lang#javascript
|
|
|
|
|
|
|
|
<!-- vim-markdown-toc GFM -->
|
|
|
|
|
2017-12-09 16:34:18 +08:00
|
|
|
* [Description](#description)
|
|
|
|
* [Layer Installation](#layer-installation)
|
|
|
|
* [Features](#features)
|
|
|
|
* [Layer configuration](#layer-configuration)
|
2017-09-22 20:59:38 +08:00
|
|
|
|
|
|
|
<!-- 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
|
|
|
|
|
2017-12-09 16:34:18 +08:00
|
|
|
`use_lsp`: Use language server if possible. The default value is `0`.
|
2017-09-22 20:59:38 +08:00
|
|
|
`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,
|
|
|
|
\ }
|
|
|
|
\ )
|
|
|
|
|
|
|
|
```
|