akinsho / flutter-tools.nvim

Tools to help create flutter apps in neovim using the native lsp
MIT License
932 stars 75 forks source link

[BUG] Hot reloading does not work on save #311

Closed joellidin closed 6 months ago

joellidin commented 6 months ago

Is there an existing issue for this?

Current Behavior

Whenever I save the view does not reload. I can manually run :FlutterReload and it works.

Expected Behavior

For the view to reload.

Steps To Reproduce

Default settings in flutter-tools.nvim and with an minimal app provided by flutter.

Environment

- OS: Ubuntu 22.04
- Flutter version: 3.16.2
- Is flutter in $PATH: yes
- neovim version: v0.10.0-dev-1734+g76a30f2bd

Anything else?

I realized that it worked if I added an autocmd with BufWritePre in my config instead of BufWritePost for whatever reason.

joellidin commented 6 months ago

I apparently had misconfigured something because now it works after some changes in my config. Sorry for the noise