mirror of https://github.com/LazyVim/starter
example.lua: working example for chaning lualine
https://vi.stackexchange.com/questions/44931/neovim-and-lazyvim-customising-lualine-status-line/45008#45008pull/74/head
parent
4818e4b72f
commit
7f451adc90
|
@ -156,11 +156,24 @@ return {
|
||||||
{
|
{
|
||||||
"nvim-lualine/lualine.nvim",
|
"nvim-lualine/lualine.nvim",
|
||||||
event = "VeryLazy",
|
event = "VeryLazy",
|
||||||
opts = function(_, opts)
|
config = function(_, opts)
|
||||||
table.insert(opts.sections.lualine_x, "😄")
|
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,
|
||||||
|
}
|
||||||
|
}
|
||||||
end,
|
end,
|
||||||
},
|
},
|
||||||
|
|
||||||
-- or you can return new options to override all the defaults
|
-- or you can return new options to override all the defaults
|
||||||
{
|
{
|
||||||
"nvim-lualine/lualine.nvim",
|
"nvim-lualine/lualine.nvim",
|
||||||
|
|
Loading…
Reference in New Issue