diff options
author | Yochem van Rosmalen <git@yochem.nl> | 2025-04-04 14:21:57 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2025-04-04 05:21:57 -0700 |
commit | b10cb0296ae299e4f97335c201ccbf8da753b2a6 (patch) | |
tree | e2b14fc0fe3844dd448798faadfa904000d5478d /src/nvim/options.lua | |
parent | 4983fa45fcfb420a38112e782b2a30baf9cc05d2 (diff) | |
download | rneovim-b10cb0296ae299e4f97335c201ccbf8da753b2a6.tar.gz rneovim-b10cb0296ae299e4f97335c201ccbf8da753b2a6.tar.bz2 rneovim-b10cb0296ae299e4f97335c201ccbf8da753b2a6.zip |
feat(defaults): store spellfile in stdpath('data') #33048
Problem:
First rtp directory is unpredictable and not in line with XDG
base spec.
Solution:
Use stdpath('data')/spell as directory if 'spellfile' is not set.
Co-authored-by: zeertzjq <zeertzjq@outlook.com>
Co-authored-by: Justin M. Keyes <justinkz@gmail.com>
Diffstat (limited to 'src/nvim/options.lua')
-rw-r--r-- | src/nvim/options.lua | 9 |
1 files changed, 4 insertions, 5 deletions
diff --git a/src/nvim/options.lua b/src/nvim/options.lua index eb1b127eae..0a807979ac 100644 --- a/src/nvim/options.lua +++ b/src/nvim/options.lua @@ -8158,11 +8158,10 @@ local options = { It may also be a comma-separated list of names. A count before the |zg| and |zw| commands can be used to access each. This allows using a personal word list file and a project word list file. - When a word is added while this option is empty Vim will set it for - you: Using the first directory in 'runtimepath' that is writable. If - there is no "spell" directory yet it will be created. For the file - name the first language name that appears in 'spelllang' is used, - ignoring the region. + When a word is added while this option is empty Nvim will use + (and auto-create) `stdpath('data')/spell/`. For the file name the + first language name that appears in 'spelllang' is used, ignoring the + region. The resulting ".spl" file will be used for spell checking, it does not have to appear in 'spelllang'. Normally one file is used for all regions, but you can add the region |