[Neovim] Update Obsidian options to handle deprecations.
This commit is contained in:
@@ -41,9 +41,12 @@ return {
|
|||||||
enable = false,
|
enable = false,
|
||||||
},
|
},
|
||||||
|
|
||||||
-- Put the note ID in the wiki links
|
link = {
|
||||||
wiki_link_func = "prepend_note_id",
|
style = "wiki",
|
||||||
preferred_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.
|
-- Customize how note IDs are generated given an optional title.
|
||||||
---@param title string|?
|
---@param title string|?
|
||||||
@@ -60,9 +63,5 @@ return {
|
|||||||
end
|
end
|
||||||
end
|
end
|
||||||
end,
|
end,
|
||||||
|
|
||||||
follow_url_func = function(url)
|
|
||||||
vim.ui.open(url) -- Use the built-in open, need Neovim 0.10.0+
|
|
||||||
end,
|
|
||||||
},
|
},
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user