diff options
| author | Tom Li Dobnik <tomlidobnik1@gmail.com> | 2025-08-09 18:08:51 +0200 |
|---|---|---|
| committer | Tom Li Dobnik <tomlidobnik1@gmail.com> | 2025-08-09 18:08:51 +0200 |
| commit | 2dab9e093cced83b8a2ae3c477052594f70e9a4d (patch) | |
| tree | aa5e06a4ed8d0643219f301cc412bd6beb5fd31a /.config/nvim/lua/config/plugins/obsidian.lua | |
| parent | da2418238c5c3aa9280a13be13ef43975345e1fe (diff) | |
cleanup
Diffstat (limited to '.config/nvim/lua/config/plugins/obsidian.lua')
| -rw-r--r-- | .config/nvim/lua/config/plugins/obsidian.lua | 42 |
1 files changed, 0 insertions, 42 deletions
diff --git a/.config/nvim/lua/config/plugins/obsidian.lua b/.config/nvim/lua/config/plugins/obsidian.lua deleted file mode 100644 index 64992fc..0000000 --- a/.config/nvim/lua/config/plugins/obsidian.lua +++ /dev/null @@ -1,42 +0,0 @@ -return { - "epwalsh/obsidian.nvim", - event = "VeryLazy", - version = "*", - dependencies = { - "nvim-lua/plenary.nvim", - "ibhagwan/fzf-lua", - }, - opts = { - ui = { enable = false }, - daily_notes = { - date_format = "%Y-%m-%d", - alias_format = "%B %-d, %Y", - default_tags = { "daily" }, - template = nil, - folder = "daily", - }, - dir = "$HOME/Library/Mobile Documents/iCloud~md~obsidian/Documents/Obsidian/", - mappings = {}, - follow_url_func = function(url) - -- Open the URL in the default web browser. - -- if URL contains @ it should be replaced with %40 - vim.fn.jobstart({ "open", url }) -- Mac OS - end, - note_id_func = function(title) - -- Create note IDs in a Zettelkasten format with a timestamp and a suffix. - -- In this case a note with the title 'My new note' will be given an ID that looks - -- like '1657296016-my-new-note', and therefore the file name '1657296016-my-new-note.md' - local suffix = "" - if title ~= nil then - -- If title is given, transform it into valid file name. - suffix = title:gsub(" ", "-"):gsub("[^A-Za-z0-9-]", ""):lower() - else - -- If title is nil, just add 4 random uppercase letters to the suffix. - for _ = 1, 4 do - suffix = suffix .. string.char(math.random(65, 90)) - end - end - return tostring(os.time()) .. "-" .. suffix - end, - }, -} |
