1
0
mirror of https://github.com/SpaceVim/SpaceVim.git synced 2025-01-23 22:40:04 +08:00
SpaceVim/docs/layers/lang/javascript.md
Seong Yong-ju df4101e8fd Add language server configuration for JavaScript
* Add APIs for register server commands for LSP
* Add server command for JavaScript language server
* Add a new layer option `use_lsp` for layer `javascript`
* Update key mappings for Javascript
2017-12-09 17:34:18 +09:00

1016 B

title description
SpaceVim lang#javascript layer This layer is for JaveScript development

SpaceVim Layers: lang#javascript

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

use_lsp: Use language server if possible. The default value is 0. auto_fix: auto fix problems when save files, disabled by default. if you need this feature, you can load this layer via:

call SpaceVim#layers#load('lang#javascript',
            \ {
            \ 'auto_fix' : 1,
            \ }
            \ )