diff --git a/lua/plugins/example.lua b/lua/plugins/example.lua index eb5b718..aea7968 100644 --- a/lua/plugins/example.lua +++ b/lua/plugins/example.lua @@ -152,14 +152,18 @@ return { end, }, - -- the opts function can also be used to change the default opts: - { - "nvim-lualine/lualine.nvim", - event = "VeryLazy", - opts = function(_, opts) - table.insert(opts.sections.lualine_x, "😄") - end, - }, + -- the opts function can also be used to change the default opts: + { + "nvim-lualine/lualine.nvim", + event = "VeryLazy", + opts = function(_, opts) + table.insert(opts.sections.lualine_x, { + function() + return "😄" + end, + }) + end, + }, -- or you can return new options to override all the defaults {