From 0a5017381c555ce08c4a1313ddd6df3550a3b17c Mon Sep 17 00:00:00 2001 From: max397574 Date: Fri, 12 Nov 2021 17:46:52 +0100 Subject: =?UTF-8?q?refactor(themes):=20=F0=9F=94=84renamed=20default=20to?= =?UTF-8?q?=20dashbaord?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- lua/startup/themes/dashboard.lua | 80 ++++++++++++++++++++++++++++++++++++++++ lua/startup/themes/default.lua | 80 ---------------------------------------- 2 files changed, 80 insertions(+), 80 deletions(-) create mode 100644 lua/startup/themes/dashboard.lua delete mode 100644 lua/startup/themes/default.lua (limited to 'lua/startup/themes') diff --git a/lua/startup/themes/dashboard.lua b/lua/startup/themes/dashboard.lua new file mode 100644 index 0000000..1041ecf --- /dev/null +++ b/lua/startup/themes/dashboard.lua @@ -0,0 +1,80 @@ +local settings = { + -- every line should be same width without escaped \ + header = { + type = "text", + oldfiles_directory = false, + align = "center", + fold_section = false, + title = "Header", + margin = 5, + content = { + " /$$ ", + " |__/ ", + " /$$$$$$$ /$$$$$$ /$$$$$$ /$$ /$$ /$$ /$$$$$$/$$$$ ", + "| $$__ $$ /$$__ $$ /$$__ $$| $$ /$$/| $$| $$_ $$_ $$", + "| $$ \\ $$| $$$$$$$$| $$ \\ $$ \\ $$/$$/ | $$| $$ \\ $$ \\ $$", + "| $$ | $$| $$_____/| $$ | $$ \\ $$$/ | $$| $$ | $$ | $$", + "| $$ | $$| $$$$$$$| $$$$$$/ \\ $/ | $$| $$ | $$ | $$", + "|__/ |__/ \\_______/ \\______/ \\_/ |__/|__/ |__/ |__/", + }, + highlight = "Statement", + default_color = "", + command = "", + oldfiles_amount = 0, + }, + -- name which will be displayed and command + body = { + type = "mapping", + oldfiles_directory = false, + align = "center", + fold_section = false, + 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, + }, + footer = { + type = "text", + oldfiles_directory = false, + align = "center", + fold_section = false, + title = "Footer", + margin = 5, + content = { "startup.nvim" }, + highlight = "Number", + default_color = "", + command = "", + oldfiles_amount = 0, + }, + + options = { + mapping_keys = true, + cursor_column = 0.5, + empty_lines_between_mappings = true, + disable_statuslines = true, + paddings = { 1, 3, 3, 0 }, + }, + mappings = { + execute_command = "", + open_file = "o", + open_file_split = "", + open_section = "", + open_help = "?", + }, + colors = { + background = "#1f2227", + folded_section = "#56b6c2", + }, + parts = { "header", "body", "footer" }, +} +return settings diff --git a/lua/startup/themes/default.lua b/lua/startup/themes/default.lua deleted file mode 100644 index 1041ecf..0000000 --- a/lua/startup/themes/default.lua +++ /dev/null @@ -1,80 +0,0 @@ -local settings = { - -- every line should be same width without escaped \ - header = { - type = "text", - oldfiles_directory = false, - align = "center", - fold_section = false, - title = "Header", - margin = 5, - content = { - " /$$ ", - " |__/ ", - " /$$$$$$$ /$$$$$$ /$$$$$$ /$$ /$$ /$$ /$$$$$$/$$$$ ", - "| $$__ $$ /$$__ $$ /$$__ $$| $$ /$$/| $$| $$_ $$_ $$", - "| $$ \\ $$| $$$$$$$$| $$ \\ $$ \\ $$/$$/ | $$| $$ \\ $$ \\ $$", - "| $$ | $$| $$_____/| $$ | $$ \\ $$$/ | $$| $$ | $$ | $$", - "| $$ | $$| $$$$$$$| $$$$$$/ \\ $/ | $$| $$ | $$ | $$", - "|__/ |__/ \\_______/ \\______/ \\_/ |__/|__/ |__/ |__/", - }, - highlight = "Statement", - default_color = "", - command = "", - oldfiles_amount = 0, - }, - -- name which will be displayed and command - body = { - type = "mapping", - oldfiles_directory = false, - align = "center", - fold_section = false, - 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, - }, - footer = { - type = "text", - oldfiles_directory = false, - align = "center", - fold_section = false, - title = "Footer", - margin = 5, - content = { "startup.nvim" }, - highlight = "Number", - default_color = "", - command = "", - oldfiles_amount = 0, - }, - - options = { - mapping_keys = true, - cursor_column = 0.5, - empty_lines_between_mappings = true, - disable_statuslines = true, - paddings = { 1, 3, 3, 0 }, - }, - mappings = { - execute_command = "", - open_file = "o", - open_file_split = "", - open_section = "", - open_help = "?", - }, - colors = { - background = "#1f2227", - folded_section = "#56b6c2", - }, - parts = { "header", "body", "footer" }, -} -return settings -- cgit v1.2.3