From 70d2e9a4f2570abf52ac3aa3c381fb95e7d2c37c Mon Sep 17 00:00:00 2001 From: Daniel Lundin Date: Sat, 10 Sep 2022 12:54:25 +0200 Subject: [PATCH] nvim: lualine clock --- .config/nvim/lua/plugins/lualine.lua | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/.config/nvim/lua/plugins/lualine.lua b/.config/nvim/lua/plugins/lualine.lua index 2423d3f..bdf6612 100644 --- a/.config/nvim/lua/plugins/lualine.lua +++ b/.config/nvim/lua/plugins/lualine.lua @@ -1,4 +1,9 @@ local lualine = require("lualine") + +local function clock() + return os.date("%H:%M") +end + lualine.setup({ options = { globalstatus = true, @@ -14,5 +19,8 @@ lualine.setup({ file_status = true, }, }, + lualine_x = { "filetype" }, + lualine_y = { "location", "progress" }, + lualine_z = { clock }, }, })