Skip to content

Commit

Permalink
Adds visual debug
Browse files Browse the repository at this point in the history
  • Loading branch information
Nando Sousa committed May 30, 2019
1 parent 2829296 commit b1eed40
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 0 deletions.
4 changes: 4 additions & 0 deletions autoload/flutter.vim
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
1 change: 1 addition & 0 deletions plugin/flutter.vim
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,7 @@ command! -nargs=* FlutterRun call flutter#run(<f-args>)
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 <buffer> call flutter#hot_reload_quiet()
Expand Down

0 comments on commit b1eed40

Please sign in to comment.