Skip to content

๐ŸŒ• Port of spellfile.vim to Lua without depending on netrw

License

Notifications You must be signed in to change notification settings

cuducos/spellfile.nvim

Folders and files

NameName
Last commit message
Last commit date

Latest commit

ย 

History

19 Commits
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 

Repository files navigation

spellfile.nvim Tests StyLua

Alternative for Vim's native spellfile.vim written in Lua and with no dependency on netrw.

Context

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:

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.

Install

{ "cuducos/spellfile.nvim" }
use { "cuducos/spellfile.nvim" }

With vim-plug:

Plug 'cuducos/spellfile.nvim'

Tests

$ nvim --headless -u tests/init.lua -c "PlenaryBustedDirectory tests/ { minimal_init = 'tests/init.lua' }"

About

๐ŸŒ• Port of spellfile.vim to Lua without depending on netrw

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Sponsor this project

 

Packages

No packages published

Languages