Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Appearance settings

Commit 83d5716

Browse filesBrowse files
committed
spellfile.vim: store files in stdpath('data')
ref b9b2fb7 #6664 #6272
1 parent 1039e06 commit 83d5716
Copy full SHA for 83d5716

File tree

Expand file treeCollapse file tree

1 file changed

+2
-12
lines changed
Filter options
Expand file treeCollapse file tree

1 file changed

+2
-12
lines changed

‎runtime/autoload/spellfile.vim

Copy file name to clipboardExpand all lines: runtime/autoload/spellfile.vim
+2-12Lines changed: 2 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -195,16 +195,6 @@ function! spellfile#GetDirChoices()
195195
endfunc
196196

197197
function! spellfile#WritableSpellDir()
198-
" Always use the $XDG_DATA_HOME/nvim/site directory
199-
if exists('$XDG_DATA_HOME')
200-
return $XDG_DATA_HOME . "/nvim/site/spell"
201-
elseif !(has('win32') || has('win64'))
202-
return $HOME . "/.local/share/nvim/site/spell"
203-
endif
204-
for dir in split(&rtp, ',')
205-
if filewritable(dir) == 2
206-
return dir . "/spell"
207-
endif
208-
endfor
209-
return ''
198+
" Always use the $XDG_DATA_HOME/…/site directory
199+
return stdpath('data').'/site/spell'
210200
endfunction

0 commit comments

Comments
0 (0)
Morty Proxy This is a proxified and sanitized view of the page, visit original site.