From c140b4ff22bdac3ead99243afcd7453f9a2cd539 Mon Sep 17 00:00:00 2001 From: max397574 Date: Tue, 9 Nov 2021 07:30:27 +0100 Subject: =?UTF-8?q?refactor(themes):=20=F0=9F=94=84fixed=20buildingblocks?= =?UTF-8?q?=20and=20renamed=20evil?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- lua/startup/themes/evil.lua | 128 ++++++++++++++++++++++++++++++++++++ lua/startup/themes/evil_startup.lua | 128 ------------------------------------ lua/startup/themes/startify.lua | 4 +- 3 files changed, 130 insertions(+), 130 deletions(-) create mode 100644 lua/startup/themes/evil.lua delete mode 100644 lua/startup/themes/evil_startup.lua (limited to 'lua/startup/themes') diff --git a/lua/startup/themes/evil.lua b/lua/startup/themes/evil.lua new file mode 100644 index 0000000..a211b71 --- /dev/null +++ b/lua/startup/themes/evil.lua @@ -0,0 +1,128 @@ +local settings = { + -- every line should be same width without escaped \ + header = { + type = "text", + align = "center", + fold_section = false, + title = "Header", + margin = 5, + content = require("startup.headers").hydra(), + highlight = "Statement", + default_color = "", + command = "", + oldfiles_amount = 0, + }, + header_2 = { + type = "text", + oldfiles_directory = false, + align = "center", + fold_section = false, + title = "Quote", + margin = 5, + content = require("startup.functions").quote(), + highlight = "Constant", + default_color = "", + command = "", + oldfiles_amount = 0, + }, + -- name which will be displayed and command + body = { + type = "mapping", + align = "center", + fold_section = true, + title = "Basic Commands", + margin = 5, + content = { + [" Find File"] = { "Telescope find_files", "ff" }, + [" Find Word"] = { "Telescope live_grep", "lg" }, + [" Recent Files"] = { "Telescope oldfiles", "of" }, + [" File Browser"] = { "Telescope file_browser", "fb" }, + [" Colorschemes"] = { "Telescope colorscheme", "cs" }, + [" New File"] = { "lua require'startup'.new_file()", "nf" }, + }, + highlight = "String", + default_color = "", + command = "", + oldfiles_amount = 0, + }, + body_2 = { + type = "oldfiles", + oldfiles_directory = true, + align = "center", + fold_section = true, + title = "Oldfiles of Directory", + margin = 5, + content = {}, + highlight = "String", + default_color = "#FFFFFF", + command = "", + oldfiles_amount = 5, + }, + footer = { + type = "oldfiles", + oldfiles_directory = false, + align = "center", + fold_section = true, + title = "Oldfiles", + margin = 5, + content = { "startup.nvim" }, + highlight = "TSString", + default_color = "#FFFFFF", + command = "", + 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.functions").packer_plugins(), + oldfiles_directory = false, + align = "center", + fold_section = false, + title = "", + margin = 5, + highlight = "TSString", + default_color = "#FFFFFF", + command = "", + oldfiles_amount = 10, + }, + + options = { + mapping_keys = true, + cursor_column = 0.5, + empty_lines_between_mappings = true, + disable_statuslines = true, + paddings = { 0, 1, 1, 1, 1, 1, 1 }, + }, + colors = { + background = "#1f2227", + folded_section = "#56b6c2", + }, + parts = { + "header", + "header_2", + "body", + "body_2", + "footer", + "clock", + "footer_2", + }, +} +return settings diff --git a/lua/startup/themes/evil_startup.lua b/lua/startup/themes/evil_startup.lua deleted file mode 100644 index 68bb80b..0000000 --- a/lua/startup/themes/evil_startup.lua +++ /dev/null @@ -1,128 +0,0 @@ -local settings = { - -- every line should be same width without escaped \ - header = { - type = "text", - align = "center", - fold_section = false, - title = "Header", - margin = 5, - content = require("startup.buildingblocks.headers").hydra(), - highlight = "Statement", - default_color = "", - command = "", - oldfiles_amount = 0, - }, - header_2 = { - type = "text", - oldfiles_directory = false, - align = "center", - fold_section = false, - title = "Quote", - margin = 5, - content = require("startup.buildingblocks.functions").quote(), - highlight = "Constant", - default_color = "", - command = "", - oldfiles_amount = 0, - }, - -- name which will be displayed and command - body = { - type = "mapping", - align = "center", - fold_section = true, - title = "Basic Commands", - margin = 5, - content = { - [" Find File"] = { "Telescope find_files", "ff" }, - [" Find Word"] = { "Telescope live_grep", "lg" }, - [" Recent Files"] = { "Telescope oldfiles", "of" }, - [" File Browser"] = { "Telescope file_browser", "fb" }, - [" Colorschemes"] = { "Telescope colorscheme", "cs" }, - [" New File"] = { "lua require'startup'.new_file()", "nf" }, - }, - highlight = "String", - default_color = "", - command = "", - oldfiles_amount = 0, - }, - body_2 = { - type = "oldfiles", - oldfiles_directory = true, - align = "center", - fold_section = true, - title = "Oldfiles of Directory", - margin = 5, - content = {}, - highlight = "String", - default_color = "#FFFFFF", - command = "", - oldfiles_amount = 5, - }, - footer = { - type = "oldfiles", - oldfiles_directory = false, - align = "center", - fold_section = true, - title = "Oldfiles", - margin = 5, - content = { "startup.nvim" }, - highlight = "TSString", - default_color = "#FFFFFF", - command = "", - 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(), - oldfiles_directory = false, - align = "center", - fold_section = false, - title = "", - margin = 5, - highlight = "TSString", - default_color = "#FFFFFF", - command = "", - oldfiles_amount = 10, - }, - - options = { - mapping_keys = true, - cursor_column = 0.5, - empty_lines_between_mappings = true, - disable_statuslines = true, - paddings = { 0, 1, 1, 1, 1, 1, 1 }, - }, - colors = { - background = "#1f2227", - folded_section = "#56b6c2", - }, - parts = { - "header", - "header_2", - "body", - "body_2", - "footer", - "clock", - "footer_2", - }, -} -return settings diff --git a/lua/startup/themes/startify.lua b/lua/startup/themes/startify.lua index 3744a51..bd51d59 100644 --- a/lua/startup/themes/startify.lua +++ b/lua/startup/themes/startify.lua @@ -7,7 +7,7 @@ local settings = { fold_section = false, title = "Header", margin = 5, - content = require("startup.buildingblocks.headers").default_header(), + content = require("startup.headers").default_header(), highlight = "Statement", default_color = "", command = "", @@ -47,7 +47,7 @@ local settings = { fold_section = false, title = "Quote", margin = 5, - content = require("startup.buildingblocks.functions").quote(), + content = require("startup.functions").quote(), highlight = "String", default_color = "", command = "", -- cgit v1.2.3