Neovim plugin for flutter development.
Install with your favorite package manager (e.g. lazy.nvim).
{
"mskelton/flutter.nvim",
dependencies = { "neovim/nvim-lspconfig" },
config = true,
}
The following shows the available options with their configured defaults
require('flutter').setup({
closing_labels = {
highlight = "Comment", -- highlight for the closing label
prefix = "// ", -- character(s) to use for close label e.g. // Widget
enabled = true -- set to false to disable
},
hot_reload = true, -- Hot reload automatically on save
lsp = {
capabilities = my_custom_capabilities -- e.g. lsp_status capabilities
-- OR you can specify a function to deactivate or change or control how
-- the config is created.
capabilities = function(capabilities)
capabilities.specificThingIDontWant = false
return capabilities
end,
}
})