From 54256c169dc5d2204408379c588684f653640e7f Mon Sep 17 00:00:00 2001 From: max397574 Date: Sun, 24 Oct 2021 18:19:25 +0200 Subject: =?UTF-8?q?feat(theme):=20=E2=9C=A8added=20quote=20as=20separate?= =?UTF-8?q?=20section?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- lua/startup/themes/evil_startup.lua | 31 ++++++++++++++++++++----------- 1 file changed, 20 insertions(+), 11 deletions(-) diff --git a/lua/startup/themes/evil_startup.lua b/lua/startup/themes/evil_startup.lua index 517e0da..92b7936 100644 --- a/lua/startup/themes/evil_startup.lua +++ b/lua/startup/themes/evil_startup.lua @@ -1,22 +1,23 @@ -local header_content = {} -for _, line in ipairs(require("startup.buildingblocks.headers").hydra()) do - table.insert(header_content, line) -end - -for _, line in ipairs(require("startup.buildingblocks.functions").quote()) do - table.insert(header_content, line) -end local settings = { -- every line should be same width without escaped \ header = { type = "text", align = "center", margin = 5, - content = header_content, + content = require("startup.buildingblocks.headers").hydra(), highlight = "markdownH1", default_color = "#FFFFFF", command = "", }, + header_2 = { + type = "text", + align = "center", + margin = 5, + content = require("startup.buildingblocks.functions").quote(), + highlight = "Constant", + default_color = "", + command = "", + }, -- name which will be displayed and command body = { type = "mapping", @@ -98,11 +99,19 @@ local settings = { options = { mapping_keys = true, empty_lines_between_mappings = true, - paddings = { 1, 1, 1, 1, 1, 1 }, + paddings = { 0, 1, 1, 1, 1, 1, 1 }, }, colors = { background = "#1f2227", }, - parts = { "header", "body", "body_2", "footer", "clock", "footer_2" }, + parts = { + "header", + "header_2", + "body", + "body_2", + "footer", + "clock", + "footer_2", + }, } return settings -- cgit v1.2.3