From: Iordanis Petkakis <12776461+dpetka2001@users.noreply.github.com> Date: Tue, 22 Oct 2024 09:11:31 +0000 (+0300) Subject: docs: fix `lualine` component example (#95) X-Git-Url: http://git.localhorst.tv/?a=commitdiff_plain;h=7a10a75dc3fc2fc6a4f35f2eb33d12995ac9efca;p=nvim-config.git 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 https://github.com/LazyVim/lazyvim.github.io/blob/25af26046a30be110f0aa19c87ad2a1a1e53ce45/lua/build.lua#L369-L372? --- diff --git a/lua/plugins/example.lua b/lua/plugins/example.lua index 4ad9825..17f53d6 100644 --- a/lua/plugins/example.lua +++ b/lua/plugins/example.lua @@ -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, },