aboutsummaryrefslogtreecommitdiff
path: root/runtime/autoload/spellfile.vim
diff options
context:
space:
mode:
authorJustin M. Keyes <justinkz@gmail.com>2019-04-28 09:16:02 +0200
committerGitHub <noreply@github.com>2019-04-28 09:16:02 +0200
commitcf80fd9e02422f90ecb967aacf7a5549246b4689 (patch)
treeacb108cc2ba8db1048e2fbbbd68595c9bc5bd251 /runtime/autoload/spellfile.vim
parent070d9261b69364b0692a35c4b78b408562265ce1 (diff)
parent769f44e918c61023a3a01dc238a881049f4c6649 (diff)
downloadrneovim-cf80fd9e02422f90ecb967aacf7a5549246b4689.tar.gz
rneovim-cf80fd9e02422f90ecb967aacf7a5549246b4689.tar.bz2
rneovim-cf80fd9e02422f90ecb967aacf7a5549246b4689.zip
Merge #9911 from justinmk/win-site-data
win/defaults: Use "…/nvim-data/site" in 'runtimepath'
Diffstat (limited to 'runtime/autoload/spellfile.vim')
-rw-r--r--runtime/autoload/spellfile.vim14
1 files changed, 2 insertions, 12 deletions
diff --git a/runtime/autoload/spellfile.vim b/runtime/autoload/spellfile.vim
index 9ec6091218..c0ef51cdfe 100644
--- a/runtime/autoload/spellfile.vim
+++ b/runtime/autoload/spellfile.vim
@@ -195,16 +195,6 @@ function! spellfile#GetDirChoices()
endfunc
function! spellfile#WritableSpellDir()
- " Always use the $XDG_DATA_HOME/nvim/site directory
- if exists('$XDG_DATA_HOME')
- return $XDG_DATA_HOME . "/nvim/site/spell"
- elseif !(has('win32') || has('win64'))
- return $HOME . "/.local/share/nvim/site/spell"
- endif
- for dir in split(&rtp, ',')
- if filewritable(dir) == 2
- return dir . "/spell"
- endif
- endfor
- return ''
+ " Always use the $XDG_DATA_HOME/…/site directory
+ return stdpath('data').'/site/spell'
endfunction