summaryrefslogtreecommitdiff
path: root/lua
diff options
context:
space:
mode:
Diffstat (limited to 'lua')
-rw-r--r--lua/config/lazy.lua8
-rw-r--r--lua/config/map.lua1
2 files changed, 9 insertions, 0 deletions
diff --git a/lua/config/lazy.lua b/lua/config/lazy.lua
index 3a00367..15ac268 100644
--- a/lua/config/lazy.lua
+++ b/lua/config/lazy.lua
@@ -187,6 +187,14 @@ require("lazy").setup({
branch = "harpoon2",
requires = { "nvim-lua/plenary.nvim", lazy = true },
},
+
+ -- DAP
+ {
+ {
+ "mfussenegger/nvim-dap",
+ },
+ { "rcarriga/nvim-dap-ui", dependencies = { "mfussenegger/nvim-dap", "nvim-neotest/nvim-nio" } },
+ },
}, {
-- lazy options
diff --git a/lua/config/map.lua b/lua/config/map.lua
index 30a96c8..61bb952 100644
--- a/lua/config/map.lua
+++ b/lua/config/map.lua
@@ -62,6 +62,7 @@ vim.api.nvim_create_user_command("Hide", function()
end, {})
-- write
+map("n", " x", "!cx %", { desc = "Toggle file as executable" })
map("n", " w", "<cmd>write<cr>", { noremap = true })
map("n", " W", "<cmd>write!<cr>", { noremap = true })
map("n", " e", "<cmd>edit<cr>", { noremap = true })