Add automatic DAPUI open/close

pull/2/head
Ensar Sarajčić 2022-03-23 11:52:50 +01:00
parent 355de23a40
commit 94d509727a
1 changed files with 2 additions and 1 deletions

View File

@ -45,7 +45,8 @@ dap.listeners.after["event_initialized"]["me"] = function()
end end
end end
end end
api.nvim_set_keymap("n", "K", '<Cmd>lua require("dap.ui.variables").hover()<CR>', {silent = true}) api.nvim_set_keymap("n", "K", '<Cmd>lua require("dapui").eval()<CR>', {silent = true})
api.nvim_set_keymap("v", "K", '<Cmd>lua require("dapui").eval()<CR>', {silent = true})
end end
dap.listeners.after["event_terminated"]["me"] = function() dap.listeners.after["event_terminated"]["me"] = function()