feat(nvim): add obsidian plugin

nixos
Moritz Böhme 2024-11-11 13:23:21 +01:00
parent 14c1cafcd8
commit c64a45ac7b
Signed by: moritz
GPG Key ID: 970C6E89EB0547A9
1 changed files with 19 additions and 0 deletions

View File

@ -58,6 +58,25 @@ in
plugins.helpview.enable = true;
performance.combinePlugins.standalonePlugins = [ "helpview.nvim" ];
}
{
plugins.obsidian.enable = true;
plugins.obsidian.settings = {
dir = "~/Documents/Nextcloud/Notes/zettelkasten/";
note_id_func.__raw = ''
function(title)
if title ~= nil then
return title
else
suffix = ""
for _ = 1, 4 do
suffix = suffix .. string.char(math.random(65, 90))
end
return tostring(os.date("%Y-%m-%d")) .. "-" .. suffix
end
end
'';
};
}
];
};
}