aboutsummaryrefslogtreecommitdiff
path: root/lua/startup/themes/startify.lua
diff options
context:
space:
mode:
Diffstat (limited to 'lua/startup/themes/startify.lua')
-rw-r--r--lua/startup/themes/startify.lua46
1 files changed, 24 insertions, 22 deletions
diff --git a/lua/startup/themes/startify.lua b/lua/startup/themes/startify.lua
index 311b30a..91362fb 100644
--- a/lua/startup/themes/startify.lua
+++ b/lua/startup/themes/startify.lua
@@ -1,49 +1,51 @@
local user_bookmarks = vim.g.startup_bookmarks
-local bookmark_texts = {"Bookmarks",""}
+local bookmark_texts = { "Bookmarks", "" }
for key, file in pairs(user_bookmarks) do
- bookmark_texts[#bookmark_texts+1] = key.." "..file
+ bookmark_texts[#bookmark_texts + 1] = key .. " " .. file
end
local user_bookmark_mappings = {}
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()
+local quote = require("startup.functions").quote()
while true do
- if require"startup.utils".longest_line(quote) <= vim.o.columns-15 then
+ if require("startup.utils").longest_line(quote) <= vim.o.columns - 15 then
break
end
- quote = require"startup.functions".quote()
+ quote = require("startup.functions").quote()
end
-local length = require"startup.utils".longest_line(quote)+4
+local length = require("startup.utils").longest_line(quote) + 4
local complete = {}
-table.insert(quote,1,"")
-quote[#quote+1]=""
+table.insert(quote, 1, "")
+quote[#quote + 1] = ""
-
-table.insert(complete,"▛"..string.rep("▀",length-2).."▜")
+table.insert(complete, "▛" .. string.rep("▀", length - 2) .. "▜")
local function spaces(amount)
- return string.rep(" ",amount)
- end
+ 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).."▟")
+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
@@ -113,7 +115,7 @@ local settings = {
background = "#1f2227",
folded_section = "#56b6c2",
},
- parts = { "header", "body", "body_2", "bookmarks"},
+ parts = { "header", "body", "body_2", "bookmarks" },
}
return settings