mirror of
https://github.com/preservim/vim-wordy.git
synced 2025-11-16 13:53: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:
@@ -16,6 +16,10 @@ set cpo&vim
|
||||
" need directory to manage spell files
|
||||
let g:wordy_dir = fnamemodify(resolve(expand('<sfile>:p')), ':h:h')
|
||||
|
||||
if !exists('g:wordy_spell_dir')
|
||||
let g:wordy_spell_dir = g:wordy_dir
|
||||
endif
|
||||
|
||||
command -nargs=0 NoWordy call wordy#init({})
|
||||
|
||||
command -nargs=0 NextWordy call wordy#jump(1)
|
||||
|
||||
Reference in New Issue
Block a user