nvimdotfiles/after/plugin/dap/dap-dart.lua

20 lines
509 B
Lua
Raw Normal View History

2024-10-01 10:06:34 +00:00
local dap = require('dap')
dap.adapters.dart = {
type = 'executable',
command = 'flutter',
args = { "debug_adapter" }
}
dap.configurations.dart = {
{
type = "dart",
request = "launch",
name = "Launch Flutter Program",
-- The nvim-dap plugin populates this variable with the filename of the current buffer
program = "${file}",
-- The nvim-dap plugin populates this variable with the editor's current working directory
cwd = "${workspaceFolder}",
toolArgs = { "test", "-d", "linux" },
}
}