return { "obsidian-nvim/obsidian.nvim", version = "*", ft = "markdown", config = function() local format_title = function(title) if title and string.find(title, "/") then local last_part = string.match(title, "([^/]+)$") if last_part and last_part ~= "" then return last_part end end return title end require("obsidian").setup({ legacy_commands = false, note_id_func = function(title) local date = os.date("%Y-%m-%d") local time = os.date("%H:%M") if not title or title == "" then return string.format("%s %s", date, time) end return string.format("%s %s", date, format_title(title)) end, daily_notes = { folder = "daily_notes" }, workspaces = { { name = "personal", path = "~/vaults/personal", }, }, }) end, }