Main Page | Blog Posts | Source Code

Flutter + NeoVim

03/22/21

9/8/1442


Setup neovim + flutter:

  1. Install vim-plug for managing plugins and Coc as lsp client

  2. Edit neovim config

call plug#begin()
Plug 'neoclide/coc.nvim', {'branch': 'release'}
Plug 'dart-lang/dart-vim-plugin'
call plug#end()
  1. Run these commands:

    • :PlugInstall
    • :CocInstall coc-flutter

Everything should work by default, checkout coc-flutter for the available commands.

Most frequent commands:

One thing to add is formatting on save, for that run :CocConfig then add

{ "coc.preferences.formatOnSaveFiletypes": ["dart"] }