spellfile.lua (355B)
1 if vim.g.loaded_spellfile_plugin ~= nil then 2 return 3 end 4 vim.g.loaded_spellfile_plugin = true 5 6 vim.api.nvim_create_autocmd('SpellFileMissing', { 7 group = vim.api.nvim_create_augroup('nvim.spellfile', {}), 8 desc = 'Download missing spell files when setting spelllang', 9 callback = function(args) 10 require('nvim.spellfile').get(args.match) 11 end, 12 })