My suggestion would be to steal the functionality from PackerRestore and PackerSnapshot.
Gdb commands to store and load breakpoints between sessions are rather trivial and can be used as server to not clutter the history:
- server source tmp
- server save breakpoints tmp
A dumb way would be to use
doing it dumb: $HOME/.local/share/nvim/nvim-gdb .. dir_absolutpath .. user_cmdwindow_selection with
dir_absolutpath = vim.fn.setreg('+', vim.fs.dirname(vim.api.nvim_buf_get_name(0))).
My suggestion would be to steal the functionality from PackerRestore and PackerSnapshot.
Gdb commands to store and load breakpoints between sessions are rather trivial and can be used as
serverto not clutter the history:A dumb way would be to use
doing it dumb:
$HOME/.local/share/nvim/nvim-gdb .. dir_absolutpath .. user_cmdwindow_selectionwithdir_absolutpath = vim.fn.setreg('+', vim.fs.dirname(vim.api.nvim_buf_get_name(0))).