refactor(spell): cleanup

- prefer `stdpath(data)/site/spell` instead of looking for random dirs in 'runtimepath'.
- drop unused functions `choose_directory`, `setup`, etc.
This commit is contained in:
Justin M. Keyes
2025-10-25 23:25:07 +02:00
parent 7c5ff99e8a
commit 4d501c93bb
5 changed files with 197 additions and 245 deletions

View File

@@ -1,6 +1,7 @@
vim.g.loaded_spellfile_plugin = true
--- Callback for SpellFileMissing: download missing .spl
--- Downloads missing .spl file.
---
--- @param args { bufnr: integer, match: string }
local function on_spellfile_missing(args)
local spellfile = require('nvim.spellfile')