From 5fff121742de053cba11a8d789a5c51643e04739 Mon Sep 17 00:00:00 2001 From: Oliver Hartmann Date: Thu, 21 Sep 2023 12:48:04 +0200 Subject: [PATCH] use mason way to get exe in dap config --- lua/plugins/dap.lua | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/lua/plugins/dap.lua b/lua/plugins/dap.lua index 5164899..173bdd2 100644 --- a/lua/plugins/dap.lua +++ b/lua/plugins/dap.lua @@ -154,8 +154,7 @@ return { type = 'server', port = '${port}', executable = { - -- CHANGE THIS to your path! - command = masonpath .. '/bin/codelldb.cmd', + command = require'mason-core.path'.bin_prefix'codelldb'; args = { '--port', '${port}' }, -- On windows you may have to uncomment this: