neovim

Neovim text editor
git clone https://git.dasho.dev/neovim.git
Log | Files | Refs | README

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 })