Skip to content

Commit

Permalink
Fire autocommand User NvimGdbQuery to execute custom commands
Browse files Browse the repository at this point in the history
  • Loading branch information
sakhnik committed Feb 3, 2019
1 parent 8ae277a commit cf1f35a
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 0 deletions.
5 changes: 5 additions & 0 deletions autoload/nvimgdb.vim
Original file line number Diff line number Diff line change
@@ -1,6 +1,11 @@
lua gdb = require("gdb.app")


augroup NvimGdbInternal
au!
au User NvimGdbQuery ""
augroup END

function! s:GdbKill()
" Prevent "ghost" [noname] buffers when leaving debug when 'hidden' is on
if &hidden
Expand Down
3 changes: 3 additions & 0 deletions lua/gdb/win.moon
Original file line number Diff line number Diff line change
Expand Up @@ -52,4 +52,7 @@ class Win
-- If there was a cursor, make sure it stays above the breakpoints.
@cursor\reshow!

-- Execute the rest of custom commands
V.exe "doautocmd User NvimGdbQuery"

Win

0 comments on commit cf1f35a

Please sign in to comment.