Make cached spelling file directory configurable.

Introduces the `g:wordy_spell_dir` variable. This is useful with
`nixpkgs` or other distros where plugins are installed into unwritable
locations.
This commit is contained in:
Robin Palotai
2019-08-19 15:00:09 +02:00
parent 14b9dbf76a
commit 4e097f5552
3 changed files with 13 additions and 1 deletions

View File

@@ -45,7 +45,7 @@ function! wordy#init(...) abort
let l:src_path = l:rare_path
endif
let l:spell_dir = g:wordy_dir . '/spell'
let l:spell_dir = g:wordy_spell_dir . '/spell'
if !isdirectory(l:spell_dir)
call mkdir(expand(l:spell_dir), "p")
endif