feat(nvim): add obsidian plugin

This commit is contained in:
Moritz Böhme 2024-11-11 13:23:21 +01:00
parent 14c1cafcd8
commit c64a45ac7b
Signed by: moritz
GPG key ID: 970C6E89EB0547A9

View file

@ -58,6 +58,25 @@ in
plugins.helpview.enable = true; plugins.helpview.enable = true;
performance.combinePlugins.standalonePlugins = [ "helpview.nvim" ]; 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
'';
};
}
]; ];
}; };
} }