32 lines
591 B
Lua
32 lines
591 B
Lua
return {
|
|
{
|
|
"nvim-lualine/lualine.nvim",
|
|
event = "VeryLazy",
|
|
dependencies = {
|
|
"nvim-tree/nvim-web-devicons"
|
|
},
|
|
init = function()
|
|
vim.g.lualine_laststatus = vim.o.laststatus
|
|
if vim.fn.argc(-1) > 0 then
|
|
-- set an empty statusline till lualine loads
|
|
vim.o.statusline = " "
|
|
else
|
|
-- hide the statusline on the starter page
|
|
vim.o.laststatus = 0
|
|
end
|
|
end,
|
|
config = function()
|
|
require("lualine").setup({
|
|
options = {
|
|
theme = "monokai-pro",
|
|
globalstatus = true
|
|
},
|
|
extensions = {
|
|
"lazy",
|
|
"neo-tree"
|
|
},
|
|
})
|
|
end
|
|
}
|
|
}
|