feat(nvim): add obsidian plugin
parent
14c1cafcd8
commit
c64a45ac7b
|
@ -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
|
||||
'';
|
||||
};
|
||||
}
|
||||
];
|
||||
};
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue