mirror of
https://github.com/neovim/neovim.git
synced 2026-03-28 11:22:03 +00:00
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.
13 lines
355 B
Lua
13 lines
355 B
Lua
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,
|
|
})
|