Comments (4)
It's pretty easy to define whatever keymaps desired. See which variables could be defined to tune the keymaps: :help NvimgdbVariables. But the use might be to limited for you.
One shortcoming of Vim is that it allows to defined only buffer-local keymaps, not window-local. Thus, this plugin sets and unsets the keymaps dynamically when a source window is entered and left respectively. The source.
Now, I'm thinking whether it's worth implementing customization hooks to allow users to define their own keybindings and workflows. A user would supply his own functions OnBufEnter
, OnBufExit
, OnTermInit
, and the plugin would call them in the right moment. What do you reckon?
By the way, you may use <esc>
to exit the term mode in this plugin.
from nvim-gdb.
:help NvimgdbVariables. But the use might be to limited for you.
Instead of a list of g:nvimgdb_key_until
variables, is it more convenient to have a dictionary g:nvimgdb_key
and define some common key themes (s:step; n:next; f:finish ...
)?
But letter keys (s
n
...) are not really able to redefine as it will interfere with normal commands.
Now, I'm thinking whether it's worth implementing customization hooks to allow users to define their own keybindings and workflows.
I presume you mean to have these keys when the focus is in the source window. I think it should be the best interface.
tnoremap <c->
Thanks! With the previous point, I think the debugger window should just stick in terminal mode and all single-key commands should be triggered in the source window.
from nvim-gdb.
Actually, Vim/NeoVim allows you to remap any keys, including built-in commands.
So let me design the interface a little bit first. We need to maintain the backward compatibility, so the individual variables will be maintained for a while.
from nvim-gdb.
The progress can be tracked in the branch keys
.
from nvim-gdb.
Related Issues (20)
- Error using lldb HOT 7
- Is it possible to disable default keybindings? HOT 1
- Implement checkhealth
- Feature Request: Make vim the owner of breakpoints and not the debugger HOT 3
- Error detected while processing TabLeave Autocommands for "*" on tabnew: GdbStartPDB HOT 7
- [Solved] Unknown sign: GdbBreakpoint0 after merging d7504a52e3f5f1b6d7f62a006646681bde65a310 HOT 2
- 'GdbStart...' error if delete buffer at event 'NvimGdbCleanup' HOT 2
- mingw support? HOT 6
- Port the test suite to be based on Lua
- Port launch scripts to Lua
- Port PTY proxy to Lua
- Support PerlDB HOT 4
- gdb attach mode HOT 1
- My environment breaks the plugin HOT 2
- error calling thread_get_state for gp registers for thread 0x1d3 HOT 9
- nvim_config_override works with vimscript functions but not lua functions HOT 1
- DWARF2 Queue Guard Internal Error on run HOT 6
- showing variables when debugging with bashdb HOT 3
- [Question] unable to run lldb on Mac HOT 2
- GDB crashes with Fatal signal: Segmentation fault
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from nvim-gdb.