Update flake; Fix Obsidian.nvim
This commit is contained in:
18
nix/flake.lock
generated
18
nix/flake.lock
generated
@ -7,11 +7,11 @@
|
|||||||
]
|
]
|
||||||
},
|
},
|
||||||
"locked": {
|
"locked": {
|
||||||
"lastModified": 1762787259,
|
"lastModified": 1764034279,
|
||||||
"narHash": "sha256-t2U/GLLXHa2+kJkwnFNRVc2fEJ/lUfyZXBE5iKzJdcs=",
|
"narHash": "sha256-hZH6EHQYFifVg0bmSBYT8Art5BWhXBXE307uPLnexY0=",
|
||||||
"owner": "nix-community",
|
"owner": "nix-community",
|
||||||
"repo": "home-manager",
|
"repo": "home-manager",
|
||||||
"rev": "37a3d97f2873e0f68711117c34d04b7c7ead8f4e",
|
"rev": "381f4f8a3a5f773cb80d2b7eb8f8d733b8861434",
|
||||||
"type": "github"
|
"type": "github"
|
||||||
},
|
},
|
||||||
"original": {
|
"original": {
|
||||||
@ -27,11 +27,11 @@
|
|||||||
]
|
]
|
||||||
},
|
},
|
||||||
"locked": {
|
"locked": {
|
||||||
"lastModified": 1762627886,
|
"lastModified": 1763505477,
|
||||||
"narHash": "sha256-/QLk1bzmbcqJt9sU43+y/3tHtXhAy0l8Ck0MoO2+evQ=",
|
"narHash": "sha256-nJRd4LY2kT3OELfHqdgWjvToNZ4w+zKCMzS2R6z4sXE=",
|
||||||
"owner": "LnL7",
|
"owner": "LnL7",
|
||||||
"repo": "nix-darwin",
|
"repo": "nix-darwin",
|
||||||
"rev": "5125a3cd414dc98bbe2c528227aa6b62ee61f733",
|
"rev": "3bda9f6b14161becbd07b3c56411f1670e19b9b5",
|
||||||
"type": "github"
|
"type": "github"
|
||||||
},
|
},
|
||||||
"original": {
|
"original": {
|
||||||
@ -42,11 +42,11 @@
|
|||||||
},
|
},
|
||||||
"nixpkgs": {
|
"nixpkgs": {
|
||||||
"locked": {
|
"locked": {
|
||||||
"lastModified": 1762844143,
|
"lastModified": 1763835633,
|
||||||
"narHash": "sha256-SlybxLZ1/e4T2lb1czEtWVzDCVSTvk9WLwGhmxFmBxI=",
|
"narHash": "sha256-HzxeGVID5MChuCPESuC0dlQL1/scDKu+MmzoVBJxulM=",
|
||||||
"owner": "nixos",
|
"owner": "nixos",
|
||||||
"repo": "nixpkgs",
|
"repo": "nixpkgs",
|
||||||
"rev": "9da7f1cf7f8a6e2a7cb3001b048546c92a8258b4",
|
"rev": "050e09e091117c3d7328c7b2b7b577492c43c134",
|
||||||
"type": "github"
|
"type": "github"
|
||||||
},
|
},
|
||||||
"original": {
|
"original": {
|
||||||
|
|||||||
@ -424,23 +424,25 @@ require("obsidian").setup({
|
|||||||
checkbox = {
|
checkbox = {
|
||||||
order = { " ", ">", "x", "!", "~" },
|
order = { " ", ">", "x", "!", "~" },
|
||||||
},
|
},
|
||||||
disable_frontmatter = false,
|
frontmatter = {
|
||||||
frontmatter_func = function(note)
|
enabled = true,
|
||||||
-- Add the title of the note as an alias.
|
func = function(note)
|
||||||
if note.title then
|
-- Add the title of the note as an alias.
|
||||||
note:add_alias(note.title)
|
if note.title then
|
||||||
end
|
note:add_alias(note.title)
|
||||||
|
|
||||||
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
|
||||||
end
|
|
||||||
|
|
||||||
return out
|
local out = { id = note.id, tags = note.tags }
|
||||||
end,
|
|
||||||
|
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)
|
note_path_func = function(spec)
|
||||||
local path = spec.dir / spec.title
|
local path = spec.dir / spec.title
|
||||||
return path:with_suffix(".md")
|
return path:with_suffix(".md")
|
||||||
|
|||||||
Reference in New Issue
Block a user