From dd99e698823ad63d14fdbac9203569b78dfe44d9 Mon Sep 17 00:00:00 2001 From: Martial Saunois Date: Wed, 10 Apr 2024 17:11:07 +0200 Subject: [PATCH] Fix possible nil table for Go configs --- lua/dap-go.lua | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/lua/dap-go.lua b/lua/dap-go.lua index b45a8b5..719122a 100644 --- a/lua/dap-go.lua +++ b/lua/dap-go.lua @@ -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