-- Following file names and URLs inside Neovim. The engine lives in -- `lua/dotfiles/follow.lua`; per-scheme behavior is registered by the feature -- that owns it — see 50-notes.lua (`notes://` and `[[wiki-links]]`) and -- 50-nvim-help.lua (`nvim-help://`). local follow = require("dotfiles.follow") -- Add `'` to the list of characters included in `` because `'` is a valid URI character vim.opt.isfname:append("'") vim.keymap.set({ "n", "x" }, "gg", function() follow.follow("edit") end, { desc = "Edit URL/file in current window" }) vim.keymap.set({ "n", "x" }, "gs", function() follow.follow("split") end, { desc = "Edit URL/file in split window" }) vim.keymap.set({ "n", "x" }, "gv", function() follow.follow("vsplit") end, { desc = "Edit URL/file in vertically split window" })