setup inside config worked for me:
return {
{
"nvim-lualine/lualine.nvim",
event = "VeryLazy",
config = function(_, opts)
table.insertrequire(opts.sections'lualine').lualine_a,setup {
function()sections = {
returnlualine_a "😄"
= function()
end
return )
"😄"
-- prepend
end,
table.insert(opts.sections.lualine_z, 1, "location")
lualine_z require('lualine').setup= {
sections = { "location",
lualine_a = unpack(opts.sections.lualine_alualine_z),
lualine_z = opts.sections.lualine_z},
}
}
end,
},
}