30 lines
510 B
Lua
30 lines
510 B
Lua
--- Ensure plugin is avaiable
|
|
local ok, lualine, lazy_status = pcall(function()
|
|
return require("lualine"), require("lazy.status")
|
|
end)
|
|
if not ok then
|
|
return
|
|
end
|
|
|
|
--- Plugin options
|
|
opts = {
|
|
options = {
|
|
theme = "onedark",
|
|
},
|
|
sections = {
|
|
lualine_x = {
|
|
{
|
|
lazy_status.updates,
|
|
cond = lazy_status.has_updates,
|
|
color = { fg = "#ff9e64" },
|
|
},
|
|
{ "encoding" },
|
|
{ "fileformat" },
|
|
{ "filetype" },
|
|
},
|
|
},
|
|
}
|
|
|
|
--- Load plugin
|
|
lualine.setup(opts)
|