akinsho / flutter-tools.nvim

Tools to help create flutter apps in neovim using the native lsp

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

[BUG] flutter-tools in Lazy.nvim

XNeyMo opened this issue · comments

Is there an existing issue for this?

  • I have searched the existing issues

Current Behavior

I followed the documentation in the README, however I am unable to use the commands in Flutter. I just copy and paste the code into the documentation, my init.lua is:

required('lazy').setup({
        ...
        {
                'akinsho/flutter-tools.nvim',
                lazy = false,
                dependencies = {
                        'nvim-lua/plenary.nvim',
                        'stevearc/dressing.nvim', -- optional for vim.ui.select
                },
                config = true,
        },

        'nvim-lua/plenary.nvim',
        'stevearc/dressing.nvim'
        ...
},

Expected Behavior

Be able to use Flutter commands

Steps To Reproduce

  1. In lazy.nvim, add flutter-tools.nvim
  2. Reload nvim to install flutter-tools
  3. Error with :FlutterRun (E492: Not and editor command: FlutterRun)

Environment

- OS: Arch Linux 6.8.5
- Flutter version: 3.19.5
- Is flutter in $PATH: yes
- neovim version: 0.9.5

Anything else?

No response