diff options
Diffstat (limited to '')
| -rw-r--r-- | lua/pml68/configs/dap.lua | 7 | ||||
| -rw-r--r-- | lua/pml68/plugins.lua | 3 | ||||
| -rw-r--r-- | lua/pml68/remap.lua | 6 |
3 files changed, 12 insertions, 4 deletions
diff --git a/lua/pml68/configs/dap.lua b/lua/pml68/configs/dap.lua new file mode 100644 index 0000000..f78752e --- /dev/null +++ b/lua/pml68/configs/dap.lua @@ -0,0 +1,7 @@ +vim.keymap.set("n", "<leader>db", "<cmd> DapToggleBreakpoint <CR>") +vim.keymap.set("n", "<leader>dr", "<cmd> DapContinue <CR>") +vim.keymap.set("n", "<leader>dus", function() + local widgets = require("dap.ui.widgets") + local sidebar = widgets.sidebar(widgets.scope) + sidebar.open() +end) diff --git a/lua/pml68/plugins.lua b/lua/pml68/plugins.lua index 215d65d..fe432a5 100644 --- a/lua/pml68/plugins.lua +++ b/lua/pml68/plugins.lua @@ -211,6 +211,9 @@ local plugins = { -- Dap { "mfussenegger/nvim-dap", + init = function() + require("pml68.configs.dap") + end }, { "jay-babu/mason-nvim-dap.nvim", diff --git a/lua/pml68/remap.lua b/lua/pml68/remap.lua index dab15ca..7394e8c 100644 --- a/lua/pml68/remap.lua +++ b/lua/pml68/remap.lua @@ -6,14 +6,12 @@ vim.keymap.set("n", "<leader>cp", ":!xclip -sel clip -target image/png -i 2024*. vim.keymap.set("n", "<leader>u", "<cmd>UndotreeToggle<CR>") -- keyboard problems (temporary) -function starting() +vim.keymap.set("n", "<leader>s", function() local pos = vim.api.nvim_win_get_cursor(0)[2] local line = vim.api.nvim_get_current_line() local nline = line:sub(0, pos) .. "<" .. line:sub(pos + 1) vim.api.nvim_set_current_line(nline) -end - -vim.keymap.set("n", "<leader>s", "<cmd> lua starting() <CR>") +end) -- switch between windows vim.keymap.set("n", "<C-h>", "<C-w>h") |
