Alternative for Vim's native spellfile.vim
written in Lua and with no dependency on netrw
.
It looks like that nice feature of Vim/Neovim that automatically downloads missing spell files (e.g. on :set spell spelllang=pt
) depends entirely on netwr
:
- There's an issue on Neovim
- And there's this on native's
spellfile.vim
Native spellfile.vim
works using a SpellFileMissing
auto command, and spellfile.nvim
:
- has no other dependency than Neovim
- uses the same
autocmd
for seamless integration
You can see it working (without changing your config) by cloning this repo and:
$ nvim -u tests/init.lua
From there, try setting a language that is not installed, e.g. :set spell spelllang=pt
.
With lazy.nvim
{ "cuducos/spellfile.nvim" }
With packer.nvim
:
use { "cuducos/spellfile.nvim" }
With vim-plug
:
Plug 'cuducos/spellfile.nvim'
$ nvim --headless -u tests/init.lua -c "PlenaryBustedDirectory tests/ { minimal_init = 'tests/init.lua' }"