flutter-tools.nvim
flutter-tools.nvim copied to clipboard
[Feature] set project root in complex project structures.
I have a Project Structure that looks like...
Root
- Packages
- Package1
- Package2
- Package3
My FlutteRun needs to execute from Package 2 (where my main.dart lives). If I am in package 3, it always wants to run from Package 3. Which makes it so I have to go back a directory if I am in package 1 or 3. Ex: FlutterRun -t ../package2/path/to/main.
Is there a way to specify where this should run from? Ideally I would want FlutterRun to execute from the project root so i can specify -t packages/package2/path/to/main and it works no matter where i am at.
Thanks!
Would we want this in the setup_project({}) config? Or just as an argument to flutter run?