From fc2506b841b6b1d46d594d30e3ff57dc379efa7c Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?R=C3=B3n=C3=A1n=20Carrigan?= Date: Mon, 10 Jan 2022 10:09:47 +0000 Subject: [PATCH] fix: remove pyhon path from dap --- lua/neotest-python/base.lua | 4 ++-- lua/neotest-python/init.lua | 3 ++- 2 files changed, 4 insertions(+), 3 deletions(-) diff --git a/lua/neotest-python/base.lua b/lua/neotest-python/base.lua index bf78ea3..8af9c53 100644 --- a/lua/neotest-python/base.lua +++ b/lua/neotest-python/base.lua @@ -47,17 +47,17 @@ function M.parse_positions(file_path) return lib.treesitter.parse_positions(file_path, query) end -function M.get_strategy_config(strategy, python, python_script, args) +function M.get_strategy_config(strategy, python_script, args) local config = { dap = function() return { type = "python", name = "Neotest Debugger", request = "launch", - python = python, program = python_script, cwd = vim.fn.getcwd(), args = args, + justMyCode= false, } end, } diff --git a/lua/neotest-python/init.lua b/lua/neotest-python/init.lua index fea90fa..fc7b294 100644 --- a/lua/neotest-python/init.lua +++ b/lua/neotest-python/init.lua @@ -84,7 +84,7 @@ function PythonNeotestAdapter.build_spec(args) context = { results_path = results_path, }, - strategy = base.get_strategy_config(args.strategy, python, python_script, script_args), + strategy = base.get_strategy_config(args.strategy, python_script, script_args), } end @@ -125,3 +125,4 @@ setmetatable(PythonNeotestAdapter, { }) return PythonNeotestAdapter +