Update flake; Fix Obsidian.nvim
This commit is contained in:
@ -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")
|
||||
|
||||
Reference in New Issue
Block a user