[Bug]: not an editor command FlutterOutlineOpen and FlutterOutlineToggle
samuelnihoul opened this issue · comments
I am on a fresh install with blank config. I get these 2 errors when I try either way of opening the outline.
@samuelnihoul without any information about your setup at all I have no idea how to help. How have you installed he plugins? how have you verified that the plugin is actually loaded etc? Based on the limited information here I think it's safe to say that you haven't loaded the plugin since by default these commands are added granted you are actually in a dart file there is no point calling these functions outside of a dart file and this plugin won't even load if your not at least in a dart file
Here is my plugins/init.lua:
local plugins = {
['nvim-lua/plenary.nvim']={},
['akinsho/flutter-tools.nvim']={}
}
-- Load all plugins
local present, packer = pcall(require, "packer")
if present then
vim.cmd "packadd packer.nvim"
-- Override with default plugins with user ones
plugins = require("core.utils").merge_plugins(plugins)
packer.init()
packer.startup { plugins }
end
I am in a Dart file when I try the commands.
My full minimum reproducible example can be found on the github samuelnihoul/nvchad branch test.
It is basically a clean NVChad install where I deleted all the plugins and put only yours and nvim-lua/plenary.nvim.
I also deleted the packer options part.
@samuelnihoul this isn't a normal neovim minimal configuration, using nvchad to reproduce an issues isn't really valid since that is not a clean neovim environment. I highly recommend you try neovim without all of that and just put the plugin somewhere you can packadd
it and jsut see if that works between packer and nvchad any number of things could be going wrong. Digging through those separate tools and how their setup and affecting this plugin isn't really my remit. I can verify locally that this plugin works as expected when loaded correctly so in all likelihood this issue is with your config.
OK sorry
Closing, but if you get a working minimal reproduction (without things like nvchad) please post here.