Skip to content

Commit

Permalink
Shorten names of debug configs
Browse files Browse the repository at this point in the history
The shorter names work better using `:DapNew` with arguments
  • Loading branch information
mfussenegger committed Nov 29, 2024
1 parent 9af9f96 commit ede25d1
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions lua/dap-python.lua
Original file line number Diff line number Diff line change
Expand Up @@ -248,15 +248,15 @@ function M.setup(adapter_python_path, opts)
table.insert(configs, {
type = 'python';
request = 'launch';
name = 'Launch file';
name = 'file';
program = '${file}';
console = opts.console;
pythonPath = opts.pythonPath,
})
table.insert(configs, {
type = 'python';
request = 'launch';
name = 'Launch file with arguments';
name = 'file:args';
program = '${file}';
args = function()
local args_string = vim.fn.input('Arguments: ')
Expand All @@ -268,7 +268,7 @@ function M.setup(adapter_python_path, opts)
table.insert(configs, {
type = 'python';
request = 'attach';
name = 'Attach remote';
name = 'attach';
connect = function()
local host = vim.fn.input('Host [127.0.0.1]: ')
host = host ~= '' and host or '127.0.0.1'
Expand All @@ -279,7 +279,7 @@ function M.setup(adapter_python_path, opts)
table.insert(configs, {
type = 'python',
request = 'launch',
name = 'Run doctests in file',
name = 'file:doctest',
module = 'doctest',
args = { "${file}" },
noDebug = true,
Expand Down

0 comments on commit ede25d1

Please sign in to comment.