From d4a29b99b966d63a5bd8d5164f70a19035fc8e22 Mon Sep 17 00:00:00 2001 From: Henrik Hautakoski Date: Mon, 16 Feb 2026 16:53:24 +0100 Subject: [PATCH] nvim: move keymaps to keymaps.lua --- nvim/lua/user/keymaps.lua | 12 ++++++++++++ nvim/lua/user/plugins/ide/debugger.lua | 7 ------- 2 files changed, 12 insertions(+), 7 deletions(-) diff --git a/nvim/lua/user/keymaps.lua b/nvim/lua/user/keymaps.lua index b862e5a..0e6b00a 100644 --- a/nvim/lua/user/keymaps.lua +++ b/nvim/lua/user/keymaps.lua @@ -157,6 +157,18 @@ vim.keymap.set({ 'n', 'x' }, 'cl', 'lua vim.lsp.codelens.run()' vim.keymap.set('n', 'r', "noop", { desc = 'Rename' }) vim.keymap.set('n', 'rs', 'lua vim.lsp.buf.rename()', { desc = 'Rename symbol' }) +-- +-- Debugging +-- + +vim.keymap.set("n", "Dp", "DapNew", { silent = true }) +vim.keymap.set("n", "Dr", "DapRestartFrame", { silent = true }) +vim.keymap.set("n", "Dc", "DapContinue",{ silent = true }) +vim.keymap.set("n", "Do", "DapStepOver", { silent = true }) +vim.keymap.set("n", "Di", "DapStepInto", { silent = true }) +vim.keymap.set("n", "Db", "DapStepOut", { silent = true }) +vim.keymap.set("n", "Dt", "DapToggleBreakpoint", { silent = true }) + -- -- Search -- diff --git a/nvim/lua/user/plugins/ide/debugger.lua b/nvim/lua/user/plugins/ide/debugger.lua index 4d08b8e..5e0f2f3 100644 --- a/nvim/lua/user/plugins/ide/debugger.lua +++ b/nvim/lua/user/plugins/ide/debugger.lua @@ -24,13 +24,6 @@ return { vim.fn.sign_define('DapLogPoint', {text=icons.debug.logPoint, texthl='DapLogPoint'}) vim.fn.sign_define('DapStopped', {text=icons.debug.stopped, texthl='DapStopped'}) - vim.keymap.set("n", "Dr", dap.run_last, { silent = true }) - vim.keymap.set("n", "Dc", dap.continue, { silent = true }) - vim.keymap.set("n", "Do", dap.step_over, { silent = true }) - vim.keymap.set("n", "Di", dap.step_into, { silent = true }) - vim.keymap.set("n", "Db", dap.step_out, { silent = true }) - vim.keymap.set("n", "Dt", dap.toggle_breakpoint, { silent = true }) - dap.listeners.before.attach.dapui_config = function() dapui.open() end