From 59eadebe335f54f8cdd6cefe25d9fa00daf01371 Mon Sep 17 00:00:00 2001 From: "Justin M. Keyes" Date: Mon, 23 Mar 2026 06:41:00 -0400 Subject: fix(runtime)!: move "tohtml" to pack/dist/opt/ #34557 Problem: The "tohtml" plugin is loaded by default. Solution: - Move it to `pack/dist/opt/nvim.tohtml/`, it is an "opt-in" plugin now. - Document guidelines. - Also revert the `plugin/` locations of `spellfile.lua` and `net.lua`. That idea was not worth the trouble, it will be too much re-education for too little gain. --- runtime/plugin/tohtml.lua | 12 ------------ 1 file changed, 12 deletions(-) delete mode 100644 runtime/plugin/tohtml.lua (limited to 'runtime/plugin/tohtml.lua') diff --git a/runtime/plugin/tohtml.lua b/runtime/plugin/tohtml.lua deleted file mode 100644 index 9a4f257f7e..0000000000 --- a/runtime/plugin/tohtml.lua +++ /dev/null @@ -1,12 +0,0 @@ -if vim.g.loaded_2html_plugin ~= nil then - return -end -vim.g.loaded_2html_plugin = true - -vim.api.nvim_create_user_command('TOhtml', function(args) - local outfile = args.args ~= '' and args.args or vim.fn.tempname() .. '.html' - local html = require('tohtml').tohtml(0, { range = { args.line1, args.line2 } }) - vim.fn.writefile(html, outfile) - vim.cmd.split(outfile) - vim.bo.filetype = 'html' -end, { bar = true, nargs = '?', range = '%', complete = 'file' }) -- cgit