nvim-config/lua/plugins/lualine.lua
2024-04-15 16:58:49 +03:00

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
}
}