mirror of
https://github.com/SpaceVim/SpaceVim.git
synced 2025-01-23 17:40:06 +08:00
add description to the DOC of golang layer
This commit is contained in:
parent
1b871721cf
commit
e9ab27d943
44
docs/layers/lang/golang.md
Normal file
44
docs/layers/lang/golang.md
Normal file
@ -0,0 +1,44 @@
|
||||
---
|
||||
title: "SpaceVim golang layer"
|
||||
description: "This layer is for golang development. It also provides additional language-specific key mappings."
|
||||
---
|
||||
|
||||
# [SpaceVim Layers:](https://spacevim.org/layers) golang
|
||||
|
||||
<!-- vim-markdown-toc GFM -->
|
||||
|
||||
- [Description](#description)
|
||||
- [Install](#install)
|
||||
- [Key bindings](#key-bindings)
|
||||
|
||||
<!-- vim-markdown-toc -->
|
||||
|
||||
## Description
|
||||
|
||||
This layer is for golang development. It also provides additional language-specific key mappings.
|
||||
|
||||
## Install
|
||||
|
||||
To use this configuration layer, add `SPLayer 'lang#go` to your custom configuration file.
|
||||
|
||||
## Key bindings
|
||||
|
||||
| Key Binding | Description |
|
||||
| ----------- | ---------------------------------------- |
|
||||
| `SPC d l` | launching debugger |
|
||||
| `SPC d c` | Continue the execution |
|
||||
| `SPC d b` | Toggle a breakpoint for the current line |
|
||||
| `SPC d B` | Clear all breakpoints |
|
||||
| `SPC d o` | step over |
|
||||
| `SPC d i` | step into functions |
|
||||
| `SPC d O` | step out of current function |
|
||||
| `SPC d e s` | Evaluate and print the selected text |
|
||||
| `SPC d e e` | Evaluate the `<cword>` under the cursor |
|
||||
| `SPC d e S` | Execute the selected text |
|
||||
| `SPC d k` | Terminates the debugger |
|
||||
|
||||
**Debug Transient State**
|
||||
|
||||
key bindings is too long? use `SPC d .` to open the debug transient state:
|
||||
|
||||
![Debug Transient State](https://user-images.githubusercontent.com/13142418/33996076-b03c05bc-e0a5-11e7-90fd-5f31e2703d7e.png)
|
Loading…
Reference in New Issue
Block a user