2021-08-25 23:21:50 +00:00
|
|
|
vim.g.startify_list_order = {
|
2021-12-15 17:37:51 +00:00
|
|
|
{ " My Bookmarks" },
|
|
|
|
"bookmarks",
|
|
|
|
{ " Most recently used files in the current directory" },
|
|
|
|
"dir",
|
|
|
|
{ " Most recently used files" },
|
|
|
|
"files",
|
|
|
|
{ " My Sessions" },
|
|
|
|
"sessions",
|
2021-08-25 23:21:50 +00:00
|
|
|
}
|
2025-01-08 01:04:27 +00:00
|
|
|
|
2025-01-08 19:41:31 +00:00
|
|
|
local function get_bookmarks()
|
|
|
|
local Path = require("plenary.path")
|
|
|
|
|
|
|
|
local paths = {
|
|
|
|
"~/Documents/Obsidian",
|
|
|
|
"~/workspace/vim-settings",
|
|
|
|
"~/workspace/shoestrap",
|
|
|
|
"~/.config/fish",
|
|
|
|
"~/Nextcloud/Notes",
|
|
|
|
}
|
|
|
|
|
|
|
|
local bookmarks = {}
|
|
|
|
for _, p in ipairs(paths) do
|
|
|
|
local path = Path:new(vim.fn.expand(p))
|
|
|
|
if path:exists() then
|
|
|
|
table.insert(bookmarks, p)
|
|
|
|
end
|
|
|
|
end
|
|
|
|
|
|
|
|
return bookmarks
|
|
|
|
end
|
|
|
|
|
|
|
|
vim.g.startify_bookmarks = get_bookmarks()
|