NTBBloodbath / galaxyline.nvim

neovim statusline plugin written in lua
MIT License
164 stars 16 forks source link

Feature request: Use a name field in components instead of nesting tables #6

Open NTBBloodbath opened 3 years ago

NTBBloodbath commented 3 years ago

Maybe we could and should refact how components are being declared. But why?

I think that is more comfy to declare the statusline components doing something like this

{
    {
        id = "ViMode",
        provider = "foo",
    },
}

Instead of doing this way (current one)

{
    {
        ViMode = {
            provider = "foo",
        },
    },
}

See full context about this petition here, and special thanks to Iron-E for this amazing idea.