nvimdotfiles/after/plugin/lsp/lsp-flutter.lua

19 lines
439 B
Lua

require('flutter-tools').setup {
debugger = { -- integrate with nvim dap + install dart code debugger
enabled = true,
run_via_dap = true,
exception_breakpoints = {},
register_configurations = function(paths)
require("dap").configurations.dart = {
{
type = "dart",
request = "launch",
name = "Launch Flutter Program",
program = "./lib/main.dart",
cwd = "${workspaceFolder}",
}
}
end,
},
}