From 04daca30a903b673db1de089d99acb1006acdd72 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Sergio=20La=C3=ADn?= Date: Sun, 29 Jun 2025 13:57:57 +0200 Subject: [PATCH] fix(nvim): obsidian plugin removed the callbacks table --- .../plugins/extras/editor/docs/obsidian.lua | 28 ++++++------------- 1 file changed, 9 insertions(+), 19 deletions(-) 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",