mirror of
https://github.com/sheerun/vim-polyglot.git
synced 2025-11-12 13:33:49 -05:00
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
This commit is contained in:
@@ -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| (<F10>) or step
|
||||
in with |:GoDebugStep| (<F11>).
|
||||
|
||||
The program can also be halted with `:GoDebugHalt` (<F6>).
|
||||
|
||||
The variable window in the bottom left (`GODEBUG_VARIABLES`) will display all
|
||||
local variables. Struct values are displayed as `{...}`, array/slices as
|
||||
`[4]`. Use <CR> 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 <F6> by default.
|
||||
|
||||
*:GoDebugStop*
|
||||
*(go-debug-stop)*
|
||||
:GoDebugStop
|
||||
|
||||
Reference in New Issue
Block a user