From 69aa48cd2f4d8ebf22c44e8ab68e6b3c364a6aac Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Roman=20Fro=C5=82ow?= Date: Wed, 12 Jun 2024 18:21:28 +0200 Subject: [PATCH] Use unpack --- lua/plugins/example.lua | 18 +++++++----------- 1 file changed, 7 insertions(+), 11 deletions(-) diff --git a/lua/plugins/example.lua b/lua/plugins/example.lua index d77a0cd..ea08b13 100644 --- a/lua/plugins/example.lua +++ b/lua/plugins/example.lua @@ -157,19 +157,15 @@ return { "nvim-lualine/lualine.nvim", event = "VeryLazy", config = function(_, opts) - table.insert(opts.sections.lualine_a, - function() - return "😄" - end - ) - - -- prepend - table.insert(opts.sections.lualine_z, 1, "location") - require('lualine').setup { sections = { - lualine_a = opts.sections.lualine_a, - lualine_z = opts.sections.lualine_z, + lualine_a = function() + return "😄" + end, + lualine_z = { + "location", + unpack(opts.sections.lualine_z), + }, } } end,