flutter.nvim

Neovim plugin for flutter development.

ISC License

Stars
6
Committers
1

flutter.nvim

Neovim plugin for flutter development.

Installation

Install with your favorite package manager (e.g. lazy.nvim).

{
    "mskelton/flutter.nvim",
    dependencies = { "neovim/nvim-lspconfig" },
    config = true,
}

Options

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,
    }
})

Screenshots

Closing Tags

Closing tags