From b1eed4005282623242aea76fd4b635e86cc69232 Mon Sep 17 00:00:00 2001 From: Nando Sousa Date: Thu, 30 May 2019 20:06:22 -0300 Subject: [PATCH] Adds visual debug --- autoload/flutter.vim | 4 ++++ plugin/flutter.vim | 1 + 2 files changed, 5 insertions(+) diff --git a/autoload/flutter.vim b/autoload/flutter.vim index fb19366..7da833c 100644 --- a/autoload/flutter.vim +++ b/autoload/flutter.vim @@ -24,6 +24,10 @@ function! flutter#send(msg) abort endif endfunction +function! flutter#visual_debug() abort + return flutter#send('p') +endfunction + function! flutter#hot_reload() abort return flutter#send('r') endfunction diff --git a/plugin/flutter.vim b/plugin/flutter.vim index ca3ae82..2a1cfab 100644 --- a/plugin/flutter.vim +++ b/plugin/flutter.vim @@ -17,6 +17,7 @@ command! -nargs=* FlutterRun call flutter#run() command! FlutterHotReload call flutter#hot_reload() command! FlutterHotRestart call flutter#hot_restart() command! FlutterQuit call flutter#quit() +command! FlutterVisualDebug call flutter#visual_debug() if g:flutter_hot_reload_on_save autocmd FileType dart autocmd BufWritePost call flutter#hot_reload_quiet()