Skip to content
This repository has been archived by the owner on Apr 16, 2024. It is now read-only.

Commit

Permalink
fix(dapui): open_on_start deprecated (#137)
Browse files Browse the repository at this point in the history
  • Loading branch information
susanthenerd authored and NTBBloodbath committed Sep 26, 2021
1 parent 0b2a338 commit d8b9750
Showing 1 changed file with 5 additions and 2 deletions.
7 changes: 5 additions & 2 deletions lua/doom/modules/config/doom-dap-ui.lua
Original file line number Diff line number Diff line change
@@ -1,5 +1,9 @@
return function()
require("dapui").setup({
local dap, dapui = require('dap'), require('dapui')
dap.listeners.after.event_initialized['dapui_config'] = function() dapui.open() end
dap.listeners.before.event_terminated['dapui_config'] = function() dapui.close() end
dap.listeners.before.event_exited['dapui_config'] = function() dapui.close() end
dapui.setup({
icons = {
expanded = "",
collapsed = "",
Expand All @@ -13,7 +17,6 @@ return function()
repl = "r",
},
sidebar = {
open_on_start = true,
elements = {
-- You can change the order of elements in the sidebar
"scopes",
Expand Down

0 comments on commit d8b9750

Please sign in to comment.