From 6fe483f173552bdc91babce99056971472fd4a2d Mon Sep 17 00:00:00 2001 From: xesc Date: Tue, 3 Jun 2025 16:10:12 +0200 Subject: [PATCH] update obsidian config --- lua/plugin/obsidian.lua | 34 +++++++++++++++++----------------- 1 file changed, 17 insertions(+), 17 deletions(-) diff --git a/lua/plugin/obsidian.lua b/lua/plugin/obsidian.lua index 5286959..e6ee5bd 100644 --- a/lua/plugin/obsidian.lua +++ b/lua/plugin/obsidian.lua @@ -73,11 +73,11 @@ return { new_notes_location = "current_dir", - wiki_link_func = "use_alias_only", + -- wiki_link_func = "use_alias_only", - -- wiki_link_func = function(opts) - -- return require("obsidian.util").wiki_link_id_prefix(opts) - -- end, + wiki_link_func = function(opts) + return require("obsidian.util").wiki_link_id_prefix(opts) + end, preferred_link_style = "wiki", @@ -91,19 +91,19 @@ return { -- Optional, by default when you use `:ObsidianFollowLink` on a link to an external -- URL it will be ignored but you can customize this behavior here. - ---@param url string - follow_url_func = function(url) - -- Open the URL in the default web browser. - -- vim.fn.jobstart({ "xdg-open", url }) -- linux - vim.ui.open(url) -- need Neovim 0.10.0+ - end, - - -- Optional, by default when you use `:ObsidianFollowLink` on a link to an image - -- file it will be ignored but you can customize this behavior here. - ---@param img string - follow_img_func = function(img) - vim.fn.jobstart({ "xdg-open", img }) -- linux - end, + -- ---@param url string + -- follow_url_func = function(url) + -- -- Open the URL in the default web browser. + -- -- vim.fn.jobstart({ "xdg-open", url }) -- linux + -- vim.ui.open(url) -- need Neovim 0.10.0+ + -- end, + -- + -- -- Optional, by default when you use `:ObsidianFollowLink` on a link to an image + -- -- file it will be ignored but you can customize this behavior here. + -- ---@param img string + -- follow_img_func = function(img) + -- vim.fn.jobstart({ "xdg-open", img }) -- linux + -- end, attachments = { -- The default folder to place images in via `:ObsidianPasteImg`. -- If this is a relative path it will be interpreted as relative to the vault root.