diff options
Diffstat (limited to 'vim/after/plugin/spellfile_local.vim')
-rw-r--r-- | vim/after/plugin/spellfile_local.vim | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/vim/after/plugin/spellfile_local.vim b/vim/after/plugin/spellfile_local.vim index 9d89852e..1655e78c 100644 --- a/vim/after/plugin/spellfile_local.vim +++ b/vim/after/plugin/spellfile_local.vim @@ -1,8 +1,8 @@ -" Use XDG dirs for 'spellfile' -if xdg#['data']['home'] !=# '' - let g:spellfile_local_dirs = [ xdg#['data']['home'] ] +" Use XDG dirs for 'spellfile' if XDG_DATA_HOME is useable +if xdg#DataHome() !=# '' + let g:spellfile_local_dirs = [ xdg#DataHome() ] call extend( \ g:spellfile_local_dirs, - \ copy(xdg#['data']['dirs']) + \ xdg#DataDirs(), \) endif |