1
0
mirror of https://github.com/SpaceVim/SpaceVim.git synced 2025-03-23 09:21:26 +08:00

Update go doc

This commit is contained in:
wsdjeg 2018-01-03 22:56:15 +08:00
parent d427c3f065
commit c14d85ca5d
2 changed files with 22 additions and 14 deletions

View File

@ -9,6 +9,7 @@ description: "This layer is for golang development. It also provides additional
- [Description](#description) - [Description](#description)
- [Install](#install) - [Install](#install)
- [Features](#features)
- [Key bindings](#key-bindings) - [Key bindings](#key-bindings)
<!-- vim-markdown-toc --> <!-- vim-markdown-toc -->
@ -19,23 +20,30 @@ This layer is for golang development. It also provides additional language-speci
## Install ## Install
To use this configuration layer, add `SPLayer 'lang#go` to your custom configuration file. To use this configuration layer, add `call SpaceVim#layers#load('lang#go')` to your custom configuration file.
## Features
- auto-completion
- syntax checking
- goto definition
- refernce finder
## Key bindings ## Key bindings
**Import key bindings:** **Import key bindings:**
| Key Binding | Description | | Key Binding | Description |
| ----------- | ---------------------------------------- | | ----------- | --------------- |
| SPC l i | go implements | | SPC l i | go implements |
| SPC l f | go info | | SPC l f | go info |
| SPC l e | go rename | | SPC l e | go rename |
| SPC l r | go run | | SPC l r | go run |
| SPC l b | go build | | SPC l b | go build |
| SPC l t | go test | | SPC l t | go test |
| SPC l d | go doc | | SPC l d | go doc |
| SPC l v | go doc vertical | | SPC l v | go doc vertical |
| SPC l c | go coverage | | SPC l c | go coverage |
**Code formatting:** **Code formatting:**

View File

@ -8,7 +8,7 @@ description: "This layer is for JaveScript development"
<!-- vim-markdown-toc GFM --> <!-- vim-markdown-toc GFM -->
- [Description](#description) - [Description](#description)
- [Layer Installation](#layer-installation) - [Install](#install)
- [Features](#features) - [Features](#features)
- [Layer configuration](#layer-configuration) - [Layer configuration](#layer-configuration)
@ -18,7 +18,7 @@ description: "This layer is for JaveScript development"
This layer is for JavaScript development. This layer is for JavaScript development.
## Layer Installation ## Install
To use this configuration layer, add `call SpaceVim#layers#load('lang#javascript')` to your custom configuration file. To use this configuration layer, add `call SpaceVim#layers#load('lang#javascript')` to your custom configuration file.