Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/ficcdaf/academic.nvim
Academic English dictionary for Neovim
https://github.com/ficcdaf/academic.nvim
Last synced: 11 days ago
JSON representation
Academic English dictionary for Neovim
- Host: GitHub
- URL: https://github.com/ficcdaf/academic.nvim
- Owner: ficcdaf
- License: mit
- Created: 2024-12-19T21:45:25.000Z (19 days ago)
- Default Branch: main
- Last Pushed: 2024-12-19T23:49:48.000Z (19 days ago)
- Last Synced: 2024-12-20T00:29:22.969Z (19 days ago)
- Language: Lua
- Size: 1000 Bytes
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
- my-neovim-pluginlist - ficcdaf/academic.nvim - commit/ficcdaf/academic.nvim) ![](https://img.shields.io/github/commit-activity/y/ficcdaf/academic.nvim) (Other Standard Feature Enhancement / Dictionary)
README
# academic.nvim
This plugin installs and initializes an [Academic English](https://github.com/emareg/acamedic) dictionary for Neovim. It configures the dictionary as the `en-academic` language, automatically adding it to Neovim's `spelllang` table.
# Features
- Generates Neovim compatible `.spl` dictionary format from the [Acamedic](https://github.com/emareg/acamedic) hunspell dictionary.
- Automatically re-generates `.spl` binaries when needed.
- Supports directly downloading dictionary from Acamedic source with optional dependencies.# Installation
You can install `academic` with your favourite plugin manager. For example, with `lazy.nvim`:
```lua
{
"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:
```lua
-- 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.
## Optional Dependencies
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.**
# Usage
The following commands are provided:
| User Command | Lua API | Requires Dependencies |
| ---------------- | ------------------------------------------ | --------------------- |
| `AcademicUpdate` | `require("academic").update()` | Yes |
| `AcademicBuild` | `require("academic").generate_spellfile()` | No |