Skip to content

Commit

Permalink
support for flutter flavors
Browse files Browse the repository at this point in the history
  • Loading branch information
David Chen committed Nov 17, 2020
1 parent 92c6b81 commit 4b50cef
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 1 deletion.
3 changes: 3 additions & 0 deletions default_configs/_machine_specific_default.vim
Original file line number Diff line number Diff line change
Expand Up @@ -4,5 +4,8 @@ let g:python_host_prog='/usr/bin/python2'
let g:python3_host_prog='/usr/bin/python3'

let g:mkdp_browser = 'chromium'
let g:mkdp_browserfunc = 'open '

let g:flutter_default_device = 'iPhone\ 11\ Pro'
let g:flutter_run_args = "--flavor dev"

2 changes: 1 addition & 1 deletion init.vim
Original file line number Diff line number Diff line change
Expand Up @@ -371,7 +371,7 @@ func! CompileRunGcc()
silent! exec "VimtexStop"
silent! exec "VimtexCompile"
elseif &filetype == 'dart'
exec "CocCommand flutter.run -d ".g:flutter_default_device
exec "CocCommand flutter.run -d ".g:flutter_default_device." ".g:flutter_run_args
silent! exec "CocCommand flutter.dev.openDevLog"
elseif &filetype == 'javascript'
set splitbelow
Expand Down

0 comments on commit 4b50cef

Please sign in to comment.