From 439e78847c7667e791c09be59c95d79dd8e3733a Mon Sep 17 00:00:00 2001 From: max397574 Date: Sat, 6 Nov 2021 10:27:33 +0100 Subject: =?UTF-8?q?feat(themes):=20=E2=9C=A8use=20all=20options=20and=20ma?= =?UTF-8?q?ke=20themes=20nicer?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- lua/startup/themes/startify.lua | 45 ++++++++++++++++++++++++++++++++--------- 1 file changed, 35 insertions(+), 10 deletions(-) (limited to 'lua/startup/themes/startify.lua') diff --git a/lua/startup/themes/startify.lua b/lua/startup/themes/startify.lua index dc1091d..acd9869 100644 --- a/lua/startup/themes/startify.lua +++ b/lua/startup/themes/startify.lua @@ -1,10 +1,17 @@ -local settings = require "startup.themes.default" -settings = { +-- NOTE: lua dump(vim.fn.expand("#<1")) to get newest oldfile +local settings = { header = { type = "text", + oldfiles_directory = false, align = "left", + fold_section = false, + title = "Header", margin = 5, content = require("startup.buildingblocks.headers").default_header(), + highlight = "Statement", + default_color = "", + command = "", + oldfiles_amount = 0, }, body = { type = "oldfiles", @@ -13,9 +20,9 @@ settings = { fold_section = false, title = "Oldfiles", margin = 5, - content = { "startup.nvim" }, - highlight = "TSString", - default_color = "#FFFFFF", + content = "", + highlight = "String", + default_color = "", command = "", oldfiles_amount = 10, }, @@ -24,25 +31,43 @@ settings = { oldfiles_directory = true, align = "center", fold_section = false, - title = "Oldfiles of Directory", + title = "", margin = 5, - content = {}, - highlight = "TSString", - default_color = "#FFFFFF", + content = "", + highlight = "String", + default_color = "", command = "", oldfiles_amount = 10, }, footer = { type = "text", + oldfiles_directory = true, + align = "center", + fold_section = false, + title = "Quote", + margin = 5, content = require("startup.buildingblocks.functions").quote(), + highlight = "String", + default_color = "", + command = "", + oldfiles_amount = 0, }, options = { - oldfiles_amount = 3, + mapping_keys = false, + empty_line_between_mappings = false, paddings = { 1, 2, 2, 3 }, }, + mappings = { + execute_command = "", + open_file = "o", + open_file_split = "", + open_section = "", + open_help = "?", + }, colors = { background = "#1f2227", + folded_section = "#56b6c2", }, parts = { "header", "body", "body_2", "footer" }, } -- cgit v1.2.3