aboutsummaryrefslogtreecommitdiff
path: root/lua/startup/themes
diff options
context:
space:
mode:
Diffstat (limited to 'lua/startup/themes')
-rw-r--r--lua/startup/themes/startify.lua17
1 files changed, 11 insertions, 6 deletions
diff --git a/lua/startup/themes/startify.lua b/lua/startup/themes/startify.lua
index 91362fb..bcb50e5 100644
--- a/lua/startup/themes/startify.lua
+++ b/lua/startup/themes/startify.lua
@@ -1,15 +1,20 @@
local user_bookmarks = vim.g.startup_bookmarks
local bookmark_texts = { "Bookmarks", "" }
+local user_bookmark_mappings = {}
-for key, file in pairs(user_bookmarks) do
- bookmark_texts[#bookmark_texts + 1] = key .. " " .. file
+if not user_bookmarks then
+ user_bookmarks = {}
+ bookmark_texts = {}
end
-local user_bookmark_mappings = {}
-for key, file in pairs(user_bookmarks) do
- user_bookmark_mappings[key] = "<cmd>e " .. file .. "<CR>"
-end
+ for key, file in pairs(user_bookmarks) do
+ bookmark_texts[#bookmark_texts + 1] = key .. " " .. file
+ end
+
+ for key, file in pairs(user_bookmarks) do
+ user_bookmark_mappings[key] = "<cmd>e " .. file .. "<CR>"
+ end
local cow = {
" \\ ^__^",
" \\ (oo)\\_______",