blob: 0c16d95de89660be761cd3d23c4e62d9edec74aa (
plain)
1
2
3
4
5
6
7
8
9
10
11
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,
})
|