diff --git a/modules/programs/nvim/new_plugins/other.nix b/modules/programs/nvim/new_plugins/other.nix index e423f4c..7da6805 100644 --- a/modules/programs/nvim/new_plugins/other.nix +++ b/modules/programs/nvim/new_plugins/other.nix @@ -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 + ''; + }; + } ]; }; }