mirror of
https://github.com/neovim/neovim.git
synced 2024-12-26 14:11:15 -07:00
Merge pull request #7496 from jamessan/windows-spellfile-fix
spellfile.vim: Search for a writable directory on Windows
This commit is contained in:
commit
52748d266d
@ -197,7 +197,7 @@ function! spellfile#WritableSpellDir()
|
|||||||
" Always use the $XDG_DATA_HOME/nvim/site directory
|
" Always use the $XDG_DATA_HOME/nvim/site directory
|
||||||
if exists('$XDG_DATA_HOME')
|
if exists('$XDG_DATA_HOME')
|
||||||
return $XDG_DATA_HOME . "/nvim/site/spell"
|
return $XDG_DATA_HOME . "/nvim/site/spell"
|
||||||
else
|
elseif !(has('win32') || has('win64'))
|
||||||
return $HOME . "/.local/share/nvim/site/spell"
|
return $HOME . "/.local/share/nvim/site/spell"
|
||||||
endif
|
endif
|
||||||
for dir in split(&rtp, ',')
|
for dir in split(&rtp, ',')
|
||||||
|
Loading…
Reference in New Issue
Block a user