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

fix(dapui): open_on_start deprecated #137

Merged
merged 1 commit into from
Sep 26, 2021
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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