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 Jul 19, 2024
1 parent a89030d commit dd99e69
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 @@ -152,6 +152,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 dd99e69

Please sign in to comment.