From 3ef32c9b41a9fb536ea75f730a0479a581d14a21 Mon Sep 17 00:00:00 2001 From: Drew Haven Date: Mon, 15 Jun 2026 10:34:49 -0700 Subject: [PATCH] [Neovim] Update Obsidian options to handle deprecations. --- .../features/neovim/config/lua/plugins/obsidian.lua | 13 ++++++------- 1 file changed, 6 insertions(+), 7 deletions(-) diff --git a/home-manager/features/neovim/config/lua/plugins/obsidian.lua b/home-manager/features/neovim/config/lua/plugins/obsidian.lua index 0959d82..ef80724 100644 --- a/home-manager/features/neovim/config/lua/plugins/obsidian.lua +++ b/home-manager/features/neovim/config/lua/plugins/obsidian.lua @@ -41,9 +41,12 @@ return { enable = false, }, - -- Put the note ID in the wiki links - wiki_link_func = "prepend_note_id", - preferred_link_style = "wiki", + link = { + style = "wiki", + }, + + -- Disable the legacy commands and silence the deprecation warning. + legacy_commands = false, -- Customize how note IDs are generated given an optional title. ---@param title string|? @@ -60,9 +63,5 @@ return { end end end, - - follow_url_func = function(url) - vim.ui.open(url) -- Use the built-in open, need Neovim 0.10.0+ - end, }, }