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/spellfile.lua | 12 ++++++++++++ 1 file changed, 12 insertions(+) create mode 100644 runtime/plugin/spellfile.lua (limited to 'runtime/plugin/spellfile.lua') diff --git a/runtime/plugin/spellfile.lua b/runtime/plugin/spellfile.lua new file mode 100644 index 0000000000..0c16d95de8 --- /dev/null +++ b/runtime/plugin/spellfile.lua @@ -0,0 +1,12 @@ +if vim.g.loaded_spellfile_plugin ~= nil then + return +end +vim.g.loaded_spellfile_plugin = true + +vim.api.nvim_create_autocmd('SpellFileMissing', { + group = vim.api.nvim_create_augroup('nvim.spellfile', {}), + desc = 'Download missing spell files when setting spelllang', + callback = function(args) + require('nvim.spellfile').get(args.match) + end, +}) -- cgit