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

@@ -1017,7 +1017,9 @@ end
--- @param path string
--- @return boolean?
function M.mkdir_p(path)
return os.execute((is_os('win') and 'mkdir ' .. path or 'mkdir -p ' .. path))
return os.execute(
(is_os('win') and 'mkdir ' .. string.gsub(path, '/', '\\') or 'mkdir -p ' .. path)
)
end
local testid = (function()