From 3ee6ab9d13767aacceea51e72ecf9646206b7163 Mon Sep 17 00:00:00 2001 From: Adam Stankiewicz Date: Fri, 16 Oct 2020 13:41:54 +0200 Subject: Update --- doc/vim-go.txt | 49 +++++++++++++++++++++++++++++++++++++++++++++++-- 1 file changed, 47 insertions(+), 2 deletions(-) (limited to 'doc/vim-go.txt') diff --git a/doc/vim-go.txt b/doc/vim-go.txt index cc412836..d33a8b38 100644 --- a/doc/vim-go.txt +++ b/doc/vim-go.txt @@ -1498,9 +1498,9 @@ other packages. Valid options are `gopls` and `guru`. By default it's `gopls`. Use this option to define the command to be used for |:GoImplements|. The Implements feature in gopls is still new and being worked upon. -Valid options are `gopls` and `guru`. By default it's `guru`. +Valid options are `gopls` and `guru`. By default it's `gopls`. > - let g:go_implements_mode = 'guru' + let g:go_implements_mode = 'gopls' < *'g:go_def_mapping_enabled'* @@ -2490,7 +2490,52 @@ Show only variables on the right-hand side: > let g:go_debug_windows = { \ 'vars': 'rightbelow 60vnew', \ } + + *'g:go_debug_mappings'* + +Contains custom key mapping information to customize the active mappings +when debugging. + +Only the customizations desired need to be provided; the debugger will use its +default key mappings for any mapping not defined here. + +This value should be a dictionary whose keys are the plugin mapping commands +(e.g. `(go-debug-continue)`). The values are dictionaries with two keys. +`key` and `attributes`. + +`key` is expected to be the key to map (i.e. it's the `lhs` in a mapping). +`key` can be empty or missing to prevent a key mapping from being applied for +one the named mappings. + +`arguments` is the string of `map-arguments` for the mapping (e.g. +``). + +The first item must be the `lhs` to use for the mapping. The optional +second item is for `:map-arguments`. All mappings will always be `:map-local`, +so there is never a need to include `""` in the the arguments. +> + let g:go_debug_mappings = { + \ '(go-debug-continue)': {'key': 'c', 'arguments': ''], + \ '(go-debug-stop)': {'key': 'q'}, + \ '(go-debug-next)': {'key': 'n', 'arguments': ''}, + \ '(go-debug-step)': {'key': 's'}, + \} < + +Defaults are equivalent to: +> + let g:go_debug_mappings = { + \ '(go-debug-continue)': {'key': ''}, + \ '(go-debug-print)': {'key': ''}, + \ '(go-debug-breakpoint)': {'key': ''}, + \ '(go-debug-next)': {'key': ''}, + \ '(go-debug-step)': {'key': ''}, + \ '(go-debug-halt)': {'key': ''}, + \ } +< + +Your user specified settings will be merged with the defaults. + *'g:go_debug_address'* Server address `dlv` will listen on; must be in `hostname:port` format. -- cgit v1.2.3