aboutsummaryrefslogtreecommitdiff
path: root/lua/startup/themes
diff options
context:
space:
mode:
authormax397574 <[email protected]>2022-01-15 20:39:29 +0100
committermax397574 <[email protected]>2022-01-15 20:39:29 +0100
commitfefba0a70d8de780e5366e53baea9b4ca63b2698 (patch)
tree31dd6369f78847e2482e3a1e97b430efc6737383 /lua/startup/themes
parentbe883e02b3ca7b49f0fd338c35ecdb65ff44a2a6 (diff)
chore: autoformat with stylua
Diffstat (limited to 'lua/startup/themes')
-rw-r--r--lua/startup/themes/dashboard.lua138
-rw-r--r--lua/startup/themes/empty.lua38
-rw-r--r--lua/startup/themes/evil.lua234
-rw-r--r--lua/startup/themes/startify.lua168
4 files changed, 289 insertions, 289 deletions
diff --git a/lua/startup/themes/dashboard.lua b/lua/startup/themes/dashboard.lua
index 817ab17..8f0ef30 100644
--- a/lua/startup/themes/dashboard.lua
+++ b/lua/startup/themes/dashboard.lua
@@ -1,75 +1,75 @@
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 = {
- " ███╗ ██╗ ███████╗ ██████╗ ██╗ ██╗ ██╗ ███╗ ███╗",
- " ████╗ ██║ ██╔════╝██╔═══██╗ ██║ ██║ ██║ ████╗ ████║",
- " ██╔██╗ ██║ █████╗ ██║ ██║ ██║ ██║ ██║ ██╔████╔██║",
- " ██║╚██╗██║ ██╔══╝ ██║ ██║ ╚██╗ ██╔╝ ██║ ██║╚██╔╝██║",
- " ██║ ╚████║ ███████╗╚██████╔╝ ╚████╔╝ ██║ ██║ ╚═╝ ██║",
- " ╚═╝ ╚═══╝ ╚══════╝ ╚═════╝ ╚═══╝ ╚═╝ ╚═╝ ╚═╝",
+ -- 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 = "",
+ oldfiles_amount = 0,
},
- highlight = "Statement",
- default_color = "",
- 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", "<leader>ff" },
- { " Find Word", "Telescope live_grep", "<leader>lg" },
- { " Recent Files", "Telescope oldfiles", "<leader>of" },
- { " File Browser", "Telescope file_browser", "<leader>fb" },
- { " Colorschemes", "Telescope colorscheme", "<leader>cs" },
- { " New File", "lua require'startup'.new_file()", "<leader>nf" },
+ -- 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", "<leader>ff" },
+ { " Find Word", "Telescope live_grep", "<leader>lg" },
+ { " Recent Files", "Telescope oldfiles", "<leader>of" },
+ { " File Browser", "Telescope file_browser", "<leader>fb" },
+ { " Colorschemes", "Telescope colorscheme", "<leader>cs" },
+ { " New File", "lua require'startup'.new_file()", "<leader>nf" },
+ },
+ highlight = "String",
+ default_color = "",
+ 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 = "",
+ oldfiles_amount = 0,
},
- highlight = "String",
- default_color = "",
- 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 = "",
- 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 = "<CR>",
- open_file = "o",
- open_file_split = "<c-o>",
- open_section = "<TAB>",
- open_help = "?",
- },
- colors = {
- background = "#1f2227",
- folded_section = "#56b6c2",
- },
- parts = { "header", "body", "footer" },
+ options = {
+ mapping_keys = true,
+ cursor_column = 0.5,
+ empty_lines_between_mappings = true,
+ disable_statuslines = true,
+ paddings = { 1, 3, 3, 0 },
+ },
+ mappings = {
+ execute_command = "<CR>",
+ open_file = "o",
+ open_file_split = "<c-o>",
+ open_section = "<TAB>",
+ open_help = "?",
+ },
+ colors = {
+ background = "#1f2227",
+ folded_section = "#56b6c2",
+ },
+ parts = { "header", "body", "footer" },
}
return settings
diff --git a/lua/startup/themes/empty.lua b/lua/startup/themes/empty.lua
index 9ed8065..bcf82a9 100644
--- a/lua/startup/themes/empty.lua
+++ b/lua/startup/themes/empty.lua
@@ -1,22 +1,22 @@
local settings = {
- options = {
- mapping_keys = true,
- cursor_column = 0.5,
- empty_lines_between_mappings = true,
- disable_statuslines = false,
- paddings = { 1, 3, 3, 0 },
- },
- mappings = {
- execute_command = "<CR>",
- open_file = "o",
- open_file_split = "<c-o>",
- open_section = "<TAB>",
- open_help = "?",
- },
- colors = {
- background = "#1f2227",
- folded_section = "#56b6c2",
- },
- parts = {},
+ options = {
+ mapping_keys = true,
+ cursor_column = 0.5,
+ empty_lines_between_mappings = true,
+ disable_statuslines = false,
+ paddings = { 1, 3, 3, 0 },
+ },
+ mappings = {
+ execute_command = "<CR>",
+ open_file = "o",
+ open_file_split = "<c-o>",
+ open_section = "<TAB>",
+ open_help = "?",
+ },
+ colors = {
+ background = "#1f2227",
+ folded_section = "#56b6c2",
+ },
+ parts = {},
}
return settings
diff --git a/lua/startup/themes/evil.lua b/lua/startup/themes/evil.lua
index d401773..1ca5625 100644
--- a/lua/startup/themes/evil.lua
+++ b/lua/startup/themes/evil.lua
@@ -1,124 +1,124 @@
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_header,
- highlight = "Statement",
- default_color = "",
- 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 = "",
- 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", "<leader>ff" },
- { " Find Word", "Telescope live_grep", "<leader>lg" },
- { " Recent Files", "Telescope oldfiles", "<leader>of" },
- { " File Browser", "Telescope file_browser", "<leader>fb" },
- { " Colorschemes", "Telescope colorscheme", "<leader>cs" },
- { " New File", "lua require'startup'.new_file()", "<leader>nf" },
+ -- 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_header,
+ highlight = "Statement",
+ default_color = "",
+ 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 = "",
+ 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", "<leader>ff" },
+ { " Find Word", "Telescope live_grep", "<leader>lg" },
+ { " Recent Files", "Telescope oldfiles", "<leader>of" },
+ { " File Browser", "Telescope file_browser", "<leader>fb" },
+ { " Colorschemes", "Telescope colorscheme", "<leader>cs" },
+ { " New File", "lua require'startup'.new_file()", "<leader>nf" },
+ },
+ highlight = "String",
+ default_color = "",
+ 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",
+ 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",
+ oldfiles_amount = 5,
},
- highlight = "String",
- default_color = "",
- 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",
- 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",
- oldfiles_amount = 5,
- },
- 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",
- 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",
+ 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",
- 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",
+ oldfiles_amount = 10,
+ },
- options = {
- after = function()
- require("startup.utils").oldfiles_mappings()
- end,
- mapping_keys = true,
- cursor_column = 0.5,
- empty_lines_between_mappings = true,
- disable_statuslines = true,
- paddings = { 2, 2, 2, 2, 2, 2, 2 },
- },
- colors = {
- background = "#1f2227",
- folded_section = "#56b6c2",
- },
- parts = {
- "header",
- "header_2",
- "body",
- "body_2",
- "footer",
- "clock",
- "footer_2",
- },
+ options = {
+ after = function()
+ require("startup.utils").oldfiles_mappings()
+ end,
+ mapping_keys = true,
+ cursor_column = 0.5,
+ empty_lines_between_mappings = true,
+ disable_statuslines = true,
+ paddings = { 2, 2, 2, 2, 2, 2, 2 },
+ },
+ 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 7e743e9..b9d1827 100644
--- a/lua/startup/themes/startify.lua
+++ b/lua/startup/themes/startify.lua
@@ -4,31 +4,31 @@ local bookmark_texts = { "Bookmarks", "" }
local user_bookmark_mappings = {}
if not user_bookmarks then
- user_bookmarks = {}
- bookmark_texts = {}
+ user_bookmarks = {}
+ bookmark_texts = {}
end
for key, file in pairs(user_bookmarks) do
- bookmark_texts[#bookmark_texts + 1] = key .. " " .. file
+ bookmark_texts[#bookmark_texts + 1] = key .. " " .. file
end
for key, file in pairs(user_bookmarks) do
- user_bookmark_mappings[key] = "<cmd>e " .. file .. "<CR>"
+ user_bookmark_mappings[key] = "<cmd>e " .. file .. "<CR>"
end
local cow = {
- " \\ ^__^",
- " \\ (oo)\\_______",
- " (__)\\ )\\/\\",
- " ||----w |",
- " || ||",
+ " \\ ^__^",
+ " \\ (oo)\\_______",
+ " (__)\\ )\\/\\",
+ " ||----w |",
+ " || ||",
}
local quote = require("startup.functions").quote()
while true do
- if require("startup.utils").longest_line(quote) <= vim.o.columns - 15 then
- break
- end
- quote = require("startup.functions").quote()
+ if require("startup.utils").longest_line(quote) <= vim.o.columns - 15 then
+ break
+ end
+ quote = require("startup.functions").quote()
end
local length = require("startup.utils").longest_line(quote) + 4
@@ -39,88 +39,88 @@ quote[#quote + 1] = ""
table.insert(complete, "▛" .. string.rep("▀", length - 2) .. "▜")
local function spaces(amount)
- return string.rep(" ", amount)
+ return string.rep(" ", amount)
end
for _, line in ipairs(quote) do
- table.insert(
- complete,
- "▌" .. " " .. line .. spaces(length - 3 - #line) .. "▐"
- )
+ table.insert(
+ complete,
+ "▌" .. " " .. line .. spaces(length - 3 - #line) .. "▐"
+ )
end
table.insert(complete, "▙" .. string.rep("▄", length - 2) .. "▟")
for _, line in ipairs(cow) do
- complete[#complete + 1] = line
+ complete[#complete + 1] = line
end
-- 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 = complete,
- highlight = "Statement",
- default_color = "",
- oldfiles_amount = 0,
- },
- body = {
- type = "oldfiles",
- oldfiles_directory = false,
- align = "left",
- fold_section = false,
- title = "Oldfiles",
- margin = 5,
- content = "",
- highlight = "String",
- default_color = "",
- oldfiles_amount = 5,
- },
- body_2 = {
- type = "oldfiles",
- oldfiles_directory = true,
- align = "left",
- fold_section = false,
- title = "",
- margin = 5,
- content = "",
- highlight = "String",
- oldfiles_amount = 5,
- },
- bookmarks = {
- type = "text",
- align = "left",
- margin = 5,
- content = bookmark_texts,
- highlight = "String",
- },
- options = {
- after = function()
- require("startup").create_mappings(user_bookmark_mappings)
- require("startup.utils").oldfiles_mappings()
- end,
- mapping_keys = false,
- cursor_column = 0.25,
- empty_line_between_mappings = false,
- disable_statuslines = true,
- paddings = { 1, 1, 1, 1 },
- },
- mappings = {
- execute_command = "<CR>",
- open_file = "o",
- open_file_split = "<c-o>",
- open_section = "<TAB>",
- open_help = "?",
- },
- colors = {
- background = "#1f2227",
- folded_section = "#56b6c2",
- },
- parts = { "header", "body", "body_2", "bookmarks" },
+ header = {
+ type = "text",
+ oldfiles_directory = false,
+ align = "left",
+ fold_section = false,
+ title = "Header",
+ margin = 5,
+ content = complete,
+ highlight = "Statement",
+ default_color = "",
+ oldfiles_amount = 0,
+ },
+ body = {
+ type = "oldfiles",
+ oldfiles_directory = false,
+ align = "left",
+ fold_section = false,
+ title = "Oldfiles",
+ margin = 5,
+ content = "",
+ highlight = "String",
+ default_color = "",
+ oldfiles_amount = 5,
+ },
+ body_2 = {
+ type = "oldfiles",
+ oldfiles_directory = true,
+ align = "left",
+ fold_section = false,
+ title = "",
+ margin = 5,
+ content = "",
+ highlight = "String",
+ oldfiles_amount = 5,
+ },
+ bookmarks = {
+ type = "text",
+ align = "left",
+ margin = 5,
+ content = bookmark_texts,
+ highlight = "String",
+ },
+ options = {
+ after = function()
+ require("startup").create_mappings(user_bookmark_mappings)
+ require("startup.utils").oldfiles_mappings()
+ end,
+ mapping_keys = false,
+ cursor_column = 0.25,
+ empty_line_between_mappings = false,
+ disable_statuslines = true,
+ paddings = { 1, 1, 1, 1 },
+ },
+ mappings = {
+ execute_command = "<CR>",
+ open_file = "o",
+ open_file_split = "<c-o>",
+ open_section = "<TAB>",
+ open_help = "?",
+ },
+ colors = {
+ background = "#1f2227",
+ folded_section = "#56b6c2",
+ },
+ parts = { "header", "body", "body_2", "bookmarks" },
}
return settings