From a3547e4b3b03e019dbe7e543104ffd1ea82fa765 Mon Sep 17 00:00:00 2001 From: Folke Lemaitre Date: Tue, 11 Jun 2024 19:13:46 +0200 Subject: [PATCH] revert: "fix(dap): set host to 127.0.0.1 instead of localhost to prevent issues with ipv6. Fixes #3577" This reverts commit 9b8a393edc8b9a12a39f712163f6476c084a7f71. --- lua/lazyvim/plugins/extras/lang/clangd.lua | 2 +- lua/lazyvim/plugins/extras/lang/kotlin.lua | 2 +- lua/lazyvim/plugins/extras/lang/typescript.lua | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) diff --git a/lua/lazyvim/plugins/extras/lang/clangd.lua b/lua/lazyvim/plugins/extras/lang/clangd.lua index 09294970..dccbc9cb 100644 --- a/lua/lazyvim/plugins/extras/lang/clangd.lua +++ b/lua/lazyvim/plugins/extras/lang/clangd.lua @@ -123,7 +123,7 @@ return { if not dap.adapters["codelldb"] then require("dap").adapters["codelldb"] = { type = "server", - host = "127.0.0.1", + host = "localhost", port = "${port}", executable = { command = "codelldb", diff --git a/lua/lazyvim/plugins/extras/lang/kotlin.lua b/lua/lazyvim/plugins/extras/lang/kotlin.lua index 9e757722..a15f3cc4 100644 --- a/lua/lazyvim/plugins/extras/lang/kotlin.lua +++ b/lua/lazyvim/plugins/extras/lang/kotlin.lua @@ -104,7 +104,7 @@ return { port = 5005, args = {}, projectRoot = vim.fn.getcwd, - hostName = "127.0.0.1", + hostName = "localhost", timeout = 2000, }, } diff --git a/lua/lazyvim/plugins/extras/lang/typescript.lua b/lua/lazyvim/plugins/extras/lang/typescript.lua index 3015c86d..139c3086 100644 --- a/lua/lazyvim/plugins/extras/lang/typescript.lua +++ b/lua/lazyvim/plugins/extras/lang/typescript.lua @@ -194,7 +194,7 @@ return { if not dap.adapters["pwa-node"] then require("dap").adapters["pwa-node"] = { type = "server", - host = "127.0.0.1", + host = "localhost", port = "${port}", executable = { command = "node",