mirror of
https://github.com/LazyVim/starter.git
synced 2026-07-25 14:01:03 +00:00
Use unpack
This commit is contained in:
parent
7f451adc90
commit
69aa48cd2f
1 changed files with 7 additions and 11 deletions
|
|
@ -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,
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue