sakhnik / nvim-gdb

Neovim thin wrapper for GDB, LLDB, PDB/PDB++ and BashDB
723 stars 39 forks source link

Do not list debug buffer #170

Closed davxy closed 2 years ago

davxy commented 2 years ago

This PR prevents the terminal buffer - used to display the debugger console - from being listed together with the other buffers (i.e. using ls or buffers command).

Motivations

  1. prevent accidentally switching into the debug buffer while examining the code in the sources window (e.g. because of a bnext command).
  2. don't show the debug buffer in tools showing all opened buffers list (e.g. lualine).

AFAIK this is a "standard" approach used by other tools such as nvim-tree, tagbar, etc.

sakhnik commented 2 years ago

Thanks! It makes sense to do this together with the sticky terminal, I believe. Because I remember going back and forth by just typing :b term or :b gdb.