Skip to content

Commit ede25d1

Browse files
committed
Shorten names of debug configs
The shorter names work better using `:DapNew` with arguments
1 parent 9af9f96 commit ede25d1

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

lua/dap-python.lua

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -248,15 +248,15 @@ function M.setup(adapter_python_path, opts)
248248
table.insert(configs, {
249249
type = 'python';
250250
request = 'launch';
251-
name = 'Launch file';
251+
name = 'file';
252252
program = '${file}';
253253
console = opts.console;
254254
pythonPath = opts.pythonPath,
255255
})
256256
table.insert(configs, {
257257
type = 'python';
258258
request = 'launch';
259-
name = 'Launch file with arguments';
259+
name = 'file:args';
260260
program = '${file}';
261261
args = function()
262262
local args_string = vim.fn.input('Arguments: ')
@@ -268,7 +268,7 @@ function M.setup(adapter_python_path, opts)
268268
table.insert(configs, {
269269
type = 'python';
270270
request = 'attach';
271-
name = 'Attach remote';
271+
name = 'attach';
272272
connect = function()
273273
local host = vim.fn.input('Host [127.0.0.1]: ')
274274
host = host ~= '' and host or '127.0.0.1'
@@ -279,7 +279,7 @@ function M.setup(adapter_python_path, opts)
279279
table.insert(configs, {
280280
type = 'python',
281281
request = 'launch',
282-
name = 'Run doctests in file',
282+
name = 'file:doctest',
283283
module = 'doctest',
284284
args = { "${file}" },
285285
noDebug = true,

0 commit comments

Comments
 (0)