From cd1e12a32921dffaf7b9b849d853f21b8463e3b9 Mon Sep 17 00:00:00 2001 From: Seong Yong-ju Date: Sat, 13 Jan 2018 13:45:21 +0900 Subject: [PATCH] Update documentation Update documentation for javascript layer --- docs/layers/lang/javascript.md | 23 +++++++++++++++++++++++ 1 file changed, 23 insertions(+) diff --git a/docs/layers/lang/javascript.md b/docs/layers/lang/javascript.md index 22530d1cd..0f7bc6541 100644 --- a/docs/layers/lang/javascript.md +++ b/docs/layers/lang/javascript.md @@ -11,6 +11,9 @@ description: "This layer is for JaveScript development" - [Install](#install) - [Features](#features) - [Layer configuration](#layer-configuration) +- [Key bindings](#key-bindings) + - [Import key bindings](#import-key-bindings) + - [Generate key bindings](#generate-key-bindings) @@ -41,3 +44,23 @@ call SpaceVim#layers#load('lang#javascript', \ ) ``` + +## Key bindings + +### Import key bindings + +| Key Binding | Description | +| -------------------- | ------------------------------- | +| `F4` (Insert/Normal) | Import symbol under cursor | +| `SPC j i` | Import symbol under cursor | +| `SPC j f` | Import missing symbols | +| `SPC j g` | Jump to module under cursor | +| `i` (Insert) | Import symbol under cursor | +| `f` (Insert) | Import missing symbols | +| `g` (Insert) | Jump to module under cursor | + +### Generate key bindings + +| Mode | Key Binding | Description | +| ------------- | ----------- | ------------------------------------- | +| normal | `SPC l g d` | Generate JSDoc |