diff options
| author | Eugene Triguba <eugene.triguba@paymentworks.com> | 2025-07-02 07:02:38 -0400 |
|---|---|---|
| committer | Eugene Triguba <eugene.triguba@paymentworks.com> | 2025-07-02 07:02:38 -0400 |
| commit | 839c76e10f497765ff44ea28febbac14c8b1c1b0 (patch) | |
| tree | 2d7641e816eb7e6770e49dc249a478f38857f893 /nvim | |
| parent | use "" for browser (diff) | |
| parent | Add terminal mode exit keymappings and remap toggle breakpoint (diff) | |
| download | dotfiles-839c76e10f497765ff44ea28febbac14c8b1c1b0.zip | |
Merge remote-tracking branch 'upstream'
Diffstat (limited to 'nvim')
| -rw-r--r-- | nvim/.config/nvim/lua/config/keymaps.lua | 3 | ||||
| -rw-r--r-- | nvim/.config/nvim/lua/plugins/debug.lua | 2 |
2 files changed, 3 insertions, 2 deletions
diff --git a/nvim/.config/nvim/lua/config/keymaps.lua b/nvim/.config/nvim/lua/config/keymaps.lua index baa81f8..46beb9c 100644 --- a/nvim/.config/nvim/lua/config/keymaps.lua +++ b/nvim/.config/nvim/lua/config/keymaps.lua @@ -24,7 +24,8 @@ map('n', '<leader>q', vim.diagnostic.setloclist, { desc = 'Open diagnostic [Q]ui -- -- NOTE: This won't work in all terminal emulators/tmux/etc. -- Try your own mapping or just use <C-\><C-n> to exit terminal mode -map('t', '<Esc><Esc>', '<C-\\><C-n>', { desc = 'Exit terminal mode' }) +map('t', '<Esc>', '<C-\\><C-n>', { desc = 'Exit terminal mode' }) +map('t', '<C-v><Esc>', '<Esc>', { desc = 'Verbatim escape' }) -- Keybinds to make split navigation easier. -- Use CTRL+<hjkl> to switch between windows diff --git a/nvim/.config/nvim/lua/plugins/debug.lua b/nvim/.config/nvim/lua/plugins/debug.lua index 668323e..e8b3110 100644 --- a/nvim/.config/nvim/lua/plugins/debug.lua +++ b/nvim/.config/nvim/lua/plugins/debug.lua @@ -142,7 +142,7 @@ local function setup_keymaps(dap, dapui) ['<F2>'] = { dap.step_over, 'Debug: Step Over' }, ['<F3>'] = { dap.step_out, 'Debug: Step Out' }, ['<F7>'] = { dapui.toggle, 'Debug: See last session result' }, - ['<leader>tb'] = { dap.toggle_breakpoint, 'Debug: Toggle Breakpoint' }, + ['<leader>tB'] = { dap.toggle_breakpoint, 'Debug: Toggle Breakpoint' }, ['<leader>B'] = { function() dap.set_breakpoint(vim.fn.input 'Breakpoint condition: ') |