From 10a00ff13626f1417aa52a88c195b39af0ff656a Mon Sep 17 00:00:00 2001 From: max397574 Date: Sat, 23 Oct 2021 16:41:41 +0200 Subject: =?UTF-8?q?feat(themes):=20=E2=9C=A8added=20clock=20to=20evil?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- lua/startup/themes/evil_startup.lua | 22 ++++++++++++++++++++-- 1 file changed, 20 insertions(+), 2 deletions(-) diff --git a/lua/startup/themes/evil_startup.lua b/lua/startup/themes/evil_startup.lua index b170deb..517e0da 100644 --- a/lua/startup/themes/evil_startup.lua +++ b/lua/startup/themes/evil_startup.lua @@ -63,6 +63,24 @@ local settings = { oldfiles_amount = 10, }, + clock = { + type = "text", + content = function() + local clock = " " .. os.date "%H:%M" + local date = " " .. os.date "%d-%m-%y" + return { clock, date } + end, + oldfiles_directory = false, + align = "center", + fold_section = false, + title = "", + margin = 5, + highlight = "TSString", + default_color = "#FFFFFF", + command = "", + oldfiles_amount = 10, + }, + footer_2 = { type = "text", content = require("startup.buildingblocks.functions").packer_plugins(), @@ -80,11 +98,11 @@ local settings = { options = { mapping_keys = true, empty_lines_between_mappings = true, - paddings = { 1, 1, 1, 1, 1 }, + paddings = { 1, 1, 1, 1, 1, 1 }, }, colors = { background = "#1f2227", }, - parts = { "header", "body", "body_2", "footer", "footer_2" }, + parts = { "header", "body", "body_2", "footer", "clock", "footer_2" }, } return settings -- cgit v1.2.3