瀏覽代碼

Dapui.toggle is added

SamPosh 3 年之前
父節點
當前提交
9004013a8d
共有 1 個文件被更改,包括 3 次插入 和 1 次删除
  1. 3 1
      lua/kickstart/plugins/debug.lua

+ 3 - 1
lua/kickstart/plugins/debug.lua

@@ -72,7 +72,9 @@ return {
         },
       },
     }
-
+    -- toggle to see last session result. Without this ,you can't see session output in case of unhandled exception.
+    vim.keymap.set("n", "<F7>", dapui.toggle)
+    
     dap.listeners.after.event_initialized['dapui_config'] = dapui.open
     dap.listeners.before.event_terminated['dapui_config'] = dapui.close
     dap.listeners.before.event_exited['dapui_config'] = dapui.close