diff --git a/.config/nvim/lua/plugins/extras/editor/docs/obsidian.lua b/.config/nvim/lua/plugins/extras/editor/docs/obsidian.lua index b389b432..32b77b49 100644 --- a/.config/nvim/lua/plugins/extras/editor/docs/obsidian.lua +++ b/.config/nvim/lua/plugins/extras/editor/docs/obsidian.lua @@ -65,25 +65,15 @@ return { }, }, - mappings = { - ["gf"] = { - action = function() - return require("obsidian").util.gf_passthrough() - end, - opts = { noremap = false, expr = true, buffer = true }, - }, - [""] = { - action = function() - return require("obsidian").util.toggle_checkbox() - end, - opts = { buffer = true }, - }, - [""] = { - action = function() - return require("obsidian").util.smart_action() - end, - opts = { buffer = true, expr = true }, - }, + callbacks = { + enter_note = function(_, note) + vim.keymap.set("n", "gf", "ObsidianFollowLink", { + buffer = note.bufnr, + expr = note.expr, + noremap = note.noremap, + desc = "File Passthrough", + }) + end, }, new_notes_location = "notes_subdir",