summaryrefslogtreecommitdiffstats
path: root/.config/nvim/plugin/50-nvim-help.lua
diff options
context:
space:
mode:
authorThomas Vanbesien <tvanbesi@proton.me>2026-06-13 00:26:25 +0200
committerThomas Vanbesien <tvanbesi@proton.me>2026-06-13 00:39:24 +0200
commit2b065376b0f43010ebd64f49552ab96377504079 (patch)
treec1e56afc15055abcf558a7b995b40bd17af16543 /.config/nvim/plugin/50-nvim-help.lua
parent99f4b2f13f07085ff5b131e4de2704f4d8ede62b (diff)
downloaddotfiles-2b065376b0f43010ebd64f49552ab96377504079.tar.gz
dotfiles-2b065376b0f43010ebd64f49552ab96377504079.zip
refactor(nvim): rename files and move code around
Diffstat (limited to '.config/nvim/plugin/50-nvim-help.lua')
-rw-r--r--.config/nvim/plugin/50-nvim-help.lua23
1 files changed, 0 insertions, 23 deletions
diff --git a/.config/nvim/plugin/50-nvim-help.lua b/.config/nvim/plugin/50-nvim-help.lua
deleted file mode 100644
index 926bb68..0000000
--- a/.config/nvim/plugin/50-nvim-help.lua
+++ /dev/null
@@ -1,23 +0,0 @@
--- `nvim-help://<tag>` — open Neovim help for <tag> in a scratch, read-only
--- buffer. Registered with the follow engine (see 50-follow.lua).
-
-require("dotfiles.follow").register_scheme("nvim-help", {
- resolve = function(uri)
- local tagfiles = {}
- for _, path in pairs(vim.opt.runtimepath:get()) do
- tagfiles[#tagfiles + 1] = path .. "/doc/tags"
- end
- vim.opt_local.tags = tagfiles
- local matches = vim.fn.taglist(uri)
- if #matches == 0 then
- return nil, "No help page found for nvim-help://" .. uri
- end
- return matches[1].filename
- end,
- after = function()
- vim.opt_local.bufhidden = "wipe"
- vim.opt_local.buftype = "nofile"
- vim.opt_local.swapfile = false
- vim.opt_local.readonly = true
- end,
-})