[Neovim] Update Obsidian options to handle deprecations.
This commit is contained in:
@@ -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,
|
||||
},
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user