This plugin installs and initializes an Academic English dictionary for Neovim. It configures the dictionary as the en-academic
language, automatically adding it to Neovim's spelllang
table.
- Generates Neovim compatible
.spl
dictionary format from the Acamedic hunspell dictionary. - Automatically re-generates
.spl
binaries when needed. - Supports directly downloading dictionary from Acamedic source with optional dependencies.
You can install academic
with your favourite plugin manager. For example, with lazy.nvim
:
{
"ficcdaf/academic.nvim",
-- optional: only load for certain filetypes
ft = {"markdown", "tex"}
}
If you are not using a plugin manager, you can clone this repository, add it to your runtime path, and then load the plugin in your Neovim configuration:
-- In your init.lua
require("academic").load()
academic.nvim
will automatically run its setup logic as soon as it is loaded. There are currently no configuration options.
If you wish to build your dictionary directly from Acamedic with the update function, you must have bash
, curl
, and unmunch
available on your $PATH
. unmunch
is installed alongside hunspell
on most systems. This functionality is optional. A reasonably up-to-date version of the dictionary is included with this plugin.
The following commands are provided:
User Command | Lua API | Requires Dependencies |
---|---|---|
AcademicUpdate |
require("academic").update() |
Yes |
AcademicBuild |
require("academic").generate_spellfile() |
No |