summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorIordanis Petkakis <12776461+dpetka2001@users.noreply.github.com>2024-10-22 12:11:31 +0300
committerGitHub <noreply@github.com>2024-10-22 11:11:31 +0200
commit7a10a75dc3fc2fc6a4f35f2eb33d12995ac9efca (patch)
tree1076660d68917cd63c397995ae727f50dd63a318
parentcb6349c8ae922d1c5745574f4d17b44f2731d451 (diff)
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?
-rw-r--r--lua/plugins/example.lua6
1 files changed, 5 insertions, 1 deletions
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,
},