aboutsummaryrefslogtreecommitdiff
path: root/vim/after/plugin/spellfile_local.vim
blob: 7d80566089001dd644c40ee1198e1150267ad913 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
" Don't make these settings if the base plugin didn't load
if !exists('g:loaded_spellfile_local')
  finish
endif

" 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,
        \ xdg#DataDirs(),
        \)
endif