1
0
mirror of https://github.com/SpaceVim/SpaceVim.git synced 2025-01-23 17:40:06 +08:00

Update documentation

Update documentation for javascript layer
This commit is contained in:
Seong Yong-ju 2018-01-13 13:45:21 +09:00
parent 0dfac6af19
commit cd1e12a329

View File

@ -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)
<!-- vim-markdown-toc -->
@ -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 |
| `<C-j>i` (Insert) | Import symbol under cursor |
| `<C-j>f` (Insert) | Import missing symbols |
| `<C-j>g` (Insert) | Jump to module under cursor |
### Generate key bindings
| Mode | Key Binding | Description |
| ------------- | ----------- | ------------------------------------- |
| normal | `SPC l g d` | Generate JSDoc |