dotfiles/.config/nvim/lua/config/plugins/lualine.lua

37 lines
658 B
Lua
Raw Normal View History

2022-12-27 18:36:38 +01:00
local M = {
"nvim-lualine/lualine.nvim",
dependencies = { "kyazdani42/nvim-web-devicons" },
event = "VeryLazy",
}
local function clock()
return os.date("%H:%M")
end
function M.config()
local lualine = require("lualine")
lualine.setup({
options = {
globalstatus = true,
theme = "onelight",
component_separators = { left = "", right = "" },
section_separators = { left = "", right = "" },
},
sections = {
lualine_c = {
{
"filename",
path = 1,
file_status = true,
},
},
lualine_x = { "filetype" },
lualine_y = { "location", "progress" },
lualine_z = { clock },
},
})
end
return M