[BUG] flutter command not found in nvim
achrip opened this issue · comments
Ashraf Alif Adillah commented
Is there an existing issue for this?
- I have searched the existing issues
Current Behavior
the plugins works exceptionally for the most part. The weird thing is that Neovim doesn't seem to recognize the commands from this plugin. But if I use the command :Telescope flutter commands
it shows me the list of commands and all runs well. Any suggestions?
neovim v.0.9.0
this is my .config/nvim file tree
this is the flutter-tools.lua, but this file doesn't seem to do anything
Expected Behavior
I should be able to run the :Flutter
command
Steps To Reproduce
- with
Packer.nvim
, add the plugin forflutter-tools.nvim
:so
then:PackerSync
- see error when trying to run
:FlutterRun
and other flutter commands with exception E492: Not and editor command: FlutterRun
Environment
- OS: Ubuntu LTS 22.04.3
- Flutter version: 3.10.6
- Is flutter in $PATH: yes (installed via snap)
- neovim version: 0.9.0
Anything else?
No response
Akin commented
@achrip the plugin only lazily loads itself inside of dart files. Can you confirm you've checked this inside of a dart file
Ashraf Alif Adillah commented