You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I have searched the existing issues of plugins related to this issue
Neovim version (nvim -v)
NVIM v0.8.3
Operating system/version
Windows version: 10.0.22621.1413 - WSL version: 1.1.3.0
Describe the bug
When trying to use spelllang set to a different language other than english I get the following error
spellfile#LoadFile(): No (writable) spell directory found.
Warning: Cannot find word list "es.utf-8.spl" or "es.ascii.spl"
Steps To Reproduce
Open neovim with repro file
Expected Behavior
When neovim is first run, the spellfile for the spanish language doesn't exist so the spellfile.vim plugin is triggered and it should download the corresponding spellfile, so the spelling works correctly both in Spanish and English.
Then the next time neovim is opened the spelling stills works correctly.
Repro
-- DO NOT change the paths and don't remove the colorschemelocalroot=vim.fn.fnamemodify("./.repro", ":p")
-- set stdpaths to use .reprofor_, nameinipairs({ "config", "data", "state", "cache" }) dovim.env[("XDG_%s_HOME"):format(name:upper())] =root.."/" ..nameend-- bootstrap lazylocallazypath=root.."/plugins/lazy.nvim"ifnotvim.loop.fs_stat(lazypath) thenvim.fn.system({ "git", "clone", "--filter=blob:none", "https://github.com/folke/lazy.nvim.git", lazypath, })
endvim.opt.runtimepath:prepend(lazypath)
-- install pluginslocalplugins= {
"folke/tokyonight.nvim",
-- add any other plugins here
}
require("lazy").setup(plugins, {
root=root.."/plugins",
})
vim.cmd.colorscheme("tokyonight")
-- add anything else herevim.opt.spell=truevim.opt.spelllang="en,es"-- Esto es un texto de prueba en Espa├▒ol-- This es a test text in English
The text was updated successfully, but these errors were encountered:
Re #677 (comment): For me it doesn't work with that line commented or uncommented.
The directory exists and downloading works when I run nvim -u /dev/null to prevent it from using my config.
I added vim.cmd.echo('split(globpath(&rtp, "spell"), "\n")'), so part of the actual logic for finding spell directories, to my configuration to see this output
before lazy setup: ['/home/user/.local/share/nvim/site/spell', '/nix/store/d9wfkr5ap9zxaqigy0fbhq9akyjy461w-neovim-unwrapped-0.8.1/share/nvim/runtime/spell']
after lazy setup: ['/nix/store/d9wfkr5ap9zxaqigy0fbhq9akyjy461w-neovim-unwrapped-0.8.1/share/nvim/runtime/spell']
Looks like lazy setup filters out some of the rtp, which removes user-writeable directories from it and in turn triggers the issue described above. Neovim then correctly recognizes that there are no writable directories available.
Can you please reopen this issue, to me it looks like a bug.
Did you check docs and existing issues?
Neovim version (nvim -v)
NVIM v0.8.3
Operating system/version
Windows version: 10.0.22621.1413 - WSL version: 1.1.3.0
Describe the bug
When trying to use spelllang set to a different language other than english I get the following error
Steps To Reproduce
Open neovim with repro file
Expected Behavior
When neovim is first run, the spellfile for the spanish language doesn't exist so the
spellfile.vim
plugin is triggered and it should download the corresponding spellfile, so the spelling works correctly both in Spanish and English.Then the next time neovim is opened the spelling stills works correctly.
Repro
The text was updated successfully, but these errors were encountered: