03/22/21
9/8/1442
Setup neovim + flutter:
call plug#begin()
Plug 'neoclide/coc.nvim', {'branch': 'release'}
Plug 'dart-lang/dart-vim-plugin'
call plug#end()
Run these commands:
:PlugInstall
:CocInstall coc-flutter
Everything should work by default, checkout coc-flutter for the available commands.
Most frequent commands:
:CocCommand flutter.run
:CocCommand flutter.dev.openDevLog
:CocCommand flutter.dev.hotRestart
One thing to add is formatting on save, for that run :CocConfig
then add
{ "coc.preferences.formatOnSaveFiletypes": ["dart"] }