From e166f741ef054ea990aa6d1af85b97ceb82171bb Mon Sep 17 00:00:00 2001 From: Adam Stankiewicz Date: Tue, 1 Sep 2020 08:33:15 +0200 Subject: Some major updates including heuristics - Allow to define heuristics in heuristics.yaml - Migrate all filetypes from vim beginning with "a" - Remove enhanced cpp syntax (it was too slow to load) - Use setf instead of set ft for setting filetype (faster) - Override native hauristics with au! - Add globbing of files for packages - Replace predefined dirs with extra_dirs and ignored_dirs - Allow to define proper order of packages with topological sort - Fix powershell detection - Lint and fix many packages.yaml issues - etc etd --- doc/vim-go.txt | 36 ++++++++++++++++++++++++++++++++---- 1 file changed, 32 insertions(+), 4 deletions(-) (limited to 'doc') diff --git a/doc/vim-go.txt b/doc/vim-go.txt index 480b4848..e00dec9b 100644 --- a/doc/vim-go.txt +++ b/doc/vim-go.txt @@ -1718,6 +1718,13 @@ The default command used to open a new terminal for go commands such as Applicable to Neovim and Vim with `terminal` feature only. > let g:go_term_mode = "vsplit" +< + *'g:go_term_reuse'* + +Reuse the terminal window when |'g:go_term_enabled'| is set. By default it's +disabled. +> + let g:go_term_reuse = 0 < *'g:go_term_height'* *'g:go_term_width'* @@ -2242,6 +2249,8 @@ The program will halt on the breakpoint, at which point you can inspect the program state. You can go to the next line with |:GoDebugNext| () or step in with |:GoDebugStep| (). +The program can also be halted with `:GoDebugHalt` (). + The variable window in the bottom left (`GODEBUG_VARIABLES`) will display all local variables. Struct values are displayed as `{...}`, array/slices as `[4]`. Use on the variable name to expand the values. @@ -2258,10 +2267,21 @@ the `dlv` process, or |:GoDebugRestart| to recompile the code. *go-debug-commands* DEBUGGER COMMANDS~ -Only |:GoDebugStart|, `:GoDebugTest`, and |:GoDebugBreakpoint| are available -by default. `:GoDebugContinue` becomes available after running `:GoDebugStart` -or `:GoDebugTest`. The rest of the commands and mappings become available -after executing `:GoDebugContinue`. +Only |:GoDebugAttach|, |:GoDebugStart|, |:GoDebugTest|, and +|:GoDebugBreakpoint| are available by default. |:GoDebugContinue| becomes +available after running |:GoDebugAttach|, |:GoDebugStart| or |:GoDebugTest|. +The rest of the commands and mappings become available after executing +|:GoDebugContinue|. + + *:GoDebugAttach* +:GoDebugAttach pid + + Start the debug mode for pid; this does several things: + + * Setup the debug windows according to |'g:go_debug_windows'|. + * Make the `:GoDebug*` commands and `(go-debug-*)` mappings available. + + Use |:GoDebugStop| to stop `dlv` and exit debugging mode. *:GoDebugStart* :GoDebugStart [pkg] [program-args] @@ -2291,6 +2311,14 @@ after executing `:GoDebugContinue`. Stop the program (if running) and restart `dlv` to recompile the package. The current window layout and breakpoints will be left intact. + *:GoDebugHalt* + *(go-debug-halt)* +:GoDebugHalt + + Halt the program. + + Mapped to by default. + *:GoDebugStop* *(go-debug-stop)* :GoDebugStop -- cgit v1.2.3