Add zig dap configuration

main
Ensar Sarajčić 2022-04-30 23:26:57 +02:00
parent 08d3a7990c
commit a50e86aebb
1 changed files with 7 additions and 1 deletions

View File

@ -44,7 +44,12 @@ end
dap.listeners.after["event_terminated"]["me"] = function() dap.listeners.after["event_terminated"]["me"] = function()
for _, keymap in pairs(keymap_restore) do for _, keymap in pairs(keymap_restore) do
vim.keymap.set(keymap.mode, keymap.lhs, keymap.rhs, { silent = keymap.silent == 1, buffer = keymap.buffer }) vim.keymap.set(
keymap.mode,
keymap.lhs,
keymap.callback or keymap.rhs,
{ silent = keymap.silent == 1, buffer = keymap.buffer }
)
end end
keymap_restore = {} keymap_restore = {}
end end
@ -122,6 +127,7 @@ dap.configurations.cpp = {
dap.configurations.c = dap.configurations.cpp dap.configurations.c = dap.configurations.cpp
dap.configurations.rust = dap.configurations.cpp dap.configurations.rust = dap.configurations.cpp
dap.configurations.zig = dap.configurations.cpp
dap.listeners.after.event_initialized["dapui_config"] = function() dap.listeners.after.event_initialized["dapui_config"] = function()
dapui.open() dapui.open()