Made function 'start' in 'lua/flutter-tools.lua' public #429
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
This PR changes the visibility of the function
start
inlua/flutter-tools.lua
from private to public.Currently, it is not possible to execute user commands from
flutter-tools
(FlutterRun
,FlutterDebug
, ...) before a.dart
or thepubspec.yaml
file has been entered. These commands can only be used once thestart
function, which registers them, is called. The problem is, that instead of callingstart
insetup
, it is called once a.dart
or thepubspec.yaml
file is entered.This change allows the user to call
flutter.start()
in theirinit.lua
(or local.nvim.lua
) file, to register all user commands. Therefore, the user is not required to enter a.dart
/pubspec.yaml
file to run their app and view log messages.