mirror of
https://github.com/LazyVim/LazyVim.git
synced 2025-06-24 17:58:51 +02:00
fix(dap): copy config before overriding args
This commit is contained in:
parent
ba4b8dfecb
commit
72f3cc684b
1 changed files with 1 additions and 0 deletions
|
@ -1,6 +1,7 @@
|
|||
---@param config {args?:string[]|fun():string[]?}
|
||||
local function get_args(config)
|
||||
local args = type(config.args) == "function" and (config.args() or {}) or config.args or {}
|
||||
config = vim.deepcopy(config)
|
||||
---@cast args string[]
|
||||
config.args = function()
|
||||
local new_args = vim.fn.input("Run with args: ", table.concat(args, " ")) --[[@as string]]
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue