@@ -176,9 +176,10 @@ USING LAZY.NVIM ~
176176 -- Replace the above line with this if you only want to load obsidian.nvim for markdown files in your vault:
177177 -- event = {
178178 -- -- If you want to use the home shortcut '~' here you need to call 'vim.fn.expand'.
179- -- -- E.g. "BufReadPre " .. vim.fn.expand "~" .. "/my-vault/**.md"
180- -- "BufReadPre path/to/my-vault/**.md",
181- -- "BufNewFile path/to/my-vault/**.md",
179+ -- -- E.g. "BufReadPre " .. vim.fn.expand "~" .. "/my-vault/*.md"
180+ -- -- refer to `:h file-pattern` for more examples
181+ -- "BufReadPre path/to/my-vault/*.md",
182+ -- "BufNewFile path/to/my-vault/*.md",
182183 -- },
183184 dependencies = {
184185 -- Required.
@@ -447,12 +448,13 @@ carefully and customize it to your needs:
447448 vim.fn.jobstart({"open", url}) -- Mac OS
448449 -- vim.fn.jobstart({"xdg-open", url}) -- linux
449450 -- vim.cmd(':silent exec "!start ' .. url .. '"') -- Windows
451+ -- vim.ui.open(url) -- need Neovim 0.10.0+
450452 end,
451453
452454 -- Optional, by default when you use `:ObsidianFollowLink` on a link to an image
453455 -- file it will be ignored but you can customize this behavior here.
454456 ---@param img string
455- follow_url_func = function(img)
457+ follow_img_func = function(img)
456458 vim.fn.jobstart { "qlmanage", "-p", img } -- Mac OS quick look preview
457459 -- vim.fn.jobstart({"xdg-open", url}) -- linux
458460 -- vim.cmd(':silent exec "!start ' .. url .. '"') -- Windows
0 commit comments