diff --git a/after/plugin/dap/dap-python.lua b/after/plugin/dap/dap-python.lua index 6d124d3..e72b3a3 100644 --- a/after/plugin/dap/dap-python.lua +++ b/after/plugin/dap/dap-python.lua @@ -1 +1,8 @@ -require('dap-python').setup("python") +local python = "python" + +if vim.env.VIRTUAL_ENV +then + python = vim.env.VIRTUAL_ENV .. "/bin/python" +end + +require('dap-python').setup(python)