aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorHennadii Chernyshchyk <genaloner@gmail.com>2022-09-13 19:11:13 +0300
committerHennadii Chernyshchyk <genaloner@gmail.com>2022-09-13 19:11:13 +0300
commitce18e5099c7c94b5fc6da51cda8f680dd7574170 (patch)
tree55cd216625cb74b21b71b834f35fead8ec2c7a9d
parentcc08ac7675d25131a2784520cd146ea695902ea2 (diff)
downloadneovim-tasks-ce18e5099c7c94b5fc6da51cda8f680dd7574170.tar.gz
neovim-tasks-ce18e5099c7c94b5fc6da51cda8f680dd7574170.zip
Set cwd for debug tasks
-rw-r--r--lua/tasks/runner.lua1
1 files changed, 1 insertions, 0 deletions
diff --git a/lua/tasks/runner.lua b/lua/tasks/runner.lua
index 4d3663b..6a4bf5c 100644
--- a/lua/tasks/runner.lua
+++ b/lua/tasks/runner.lua
@@ -123,6 +123,7 @@ function runner.chain_commands(task_name, commands, module_config, addition_args
123 request = 'launch', 123 request = 'launch',
124 program = command.cmd, 124 program = command.cmd,
125 args = args, 125 args = args,
126 cwd = cwd,
126 })) 127 }))
127 if config.dap_open_command then 128 if config.dap_open_command then
128 vim.api.nvim_command('cclose') 129 vim.api.nvim_command('cclose')