Update flake; Fix Obsidian.nvim

This commit is contained in:
Martin Pander
2025-11-26 06:20:24 +01:00
parent adb2595344
commit 6eda68d8a4
2 changed files with 26 additions and 24 deletions

View File

@ -424,23 +424,25 @@ require("obsidian").setup({
checkbox = {
order = { " ", ">", "x", "!", "~" },
},
disable_frontmatter = false,
frontmatter_func = function(note)
-- Add the title of the note as an alias.
if note.title then
note:add_alias(note.title)
end
local out = { id = note.id, tags = note.tags }
if note.metadata ~= nil and not vim.tbl_isempty(note.metadata) then
for k, v in pairs(note.metadata) do
out[k] = v
frontmatter = {
enabled = true,
func = function(note)
-- Add the title of the note as an alias.
if note.title then
note:add_alias(note.title)
end
end
return out
end,
local out = { id = note.id, tags = note.tags }
if note.metadata ~= nil and not vim.tbl_isempty(note.metadata) then
for k, v in pairs(note.metadata) do
out[k] = v
end
end
return out
end,
},
note_path_func = function(spec)
local path = spec.dir / spec.title
return path:with_suffix(".md")