Skip to content

Commit

Permalink
Fix possible nil table for Go configs
Browse files Browse the repository at this point in the history
  • Loading branch information
cyb3rd4d committed Apr 10, 2024
1 parent 21dc8dd commit be9d514
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions lua/dap-go.lua
Original file line number Diff line number Diff line change
Expand Up @@ -125,6 +125,10 @@ local function setup_go_configuration(dap, configs)
},
}

if dap.configurations.go == nil then
dap.configurations.go = {}
end

for _, config in ipairs(common_debug_configs) do
table.insert(dap.configurations.go, config)
end
Expand Down

0 comments on commit be9d514

Please sign in to comment.