summaryrefslogtreecommitdiffstatshomepage
path: root/runtime/plugin
diff options
context:
space:
mode:
authorJustin M. Keyes <justinkz@gmail.com>2025-10-25 23:25:07 +0200
committerJustin M. Keyes <justinkz@gmail.com>2025-10-26 01:28:37 +0200
commit4d501c93bb3266536012c3e4ce428e9f9830b169 (patch)
tree938a8326661b4f72875f561f9062bdb73ee01b41 /runtime/plugin
parent7c5ff99e8a0ef7c345596df8a0c2eec80afd16b4 (diff)
refactor(spell): cleanup
- prefer `stdpath(data)/site/spell` instead of looking for random dirs in 'runtimepath'. - drop unused functions `choose_directory`, `setup`, etc.
Diffstat (limited to 'runtime/plugin')
-rw-r--r--runtime/plugin/nvim/spellfile.lua3
1 files changed, 2 insertions, 1 deletions
diff --git a/runtime/plugin/nvim/spellfile.lua b/runtime/plugin/nvim/spellfile.lua
index cafa914163..9d8bc44511 100644
--- a/runtime/plugin/nvim/spellfile.lua
+++ b/runtime/plugin/nvim/spellfile.lua
@@ -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')