summaryrefslogtreecommitdiffstats
path: root/.config/nvim/plugin/50-follow.lua
diff options
context:
space:
mode:
Diffstat (limited to '.config/nvim/plugin/50-follow.lua')
-rw-r--r--.config/nvim/plugin/50-follow.lua19
1 files changed, 0 insertions, 19 deletions
diff --git a/.config/nvim/plugin/50-follow.lua b/.config/nvim/plugin/50-follow.lua
deleted file mode 100644
index 1e48cd5..0000000
--- a/.config/nvim/plugin/50-follow.lua
+++ /dev/null
@@ -1,19 +0,0 @@
--- 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 `<cfile>` because `'` is a valid URI character
-vim.opt.isfname:append("'")
-
-vim.keymap.set({ "n", "x" }, "<Leader>gg", function()
- follow.follow("edit")
-end, { desc = "Edit URL/file in current window" })
-vim.keymap.set({ "n", "x" }, "<Leader>gs", function()
- follow.follow("split")
-end, { desc = "Edit URL/file in split window" })
-vim.keymap.set({ "n", "x" }, "<Leader>gv", function()
- follow.follow("vsplit")
-end, { desc = "Edit URL/file in vertically split window" })