docs: fix lualine component example (#95)

As per https://github.com/LazyVim/LazyVim/issues/4544 it creates
confusion to the users who are just trying out the example to try things
out. Better to avoid such misinterpretations in the future.

I'm assuming this will also update the docs automatically as I can
deduce from
25af26046a/lua/build.lua (L369-L372)?
This commit is contained in:
Iordanis Petkakis 2024-10-22 12:11:31 +03:00 committed by GitHub
parent cb6349c8ae
commit 7a10a75dc3
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -157,7 +157,11 @@ return {
"nvim-lualine/lualine.nvim",
event = "VeryLazy",
opts = function(_, opts)
table.insert(opts.sections.lualine_x, "😄")
table.insert(opts.sections.lualine_x, {
function()
return "😄"
end,
})
end,
},