mirror of
https://github.com/preservim/vim-wordy.git
synced 2025-11-16 05:43:48 -05:00
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:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user