mirror of
				https://github.com/neovim/neovim.git
				synced 2025-11-04 01:34:25 +00:00 
			
		
		
		
	@@ -196,9 +196,11 @@ function! spellfile#GetDirChoices()
 | 
				
			|||||||
endfunc
 | 
					endfunc
 | 
				
			||||||
 | 
					
 | 
				
			||||||
function! spellfile#WritableSpellDir()
 | 
					function! spellfile#WritableSpellDir()
 | 
				
			||||||
  if has("unix")
 | 
					  " Always use the $XDG_DATA_HOME/nvim/site directory
 | 
				
			||||||
    " For Unix always use the $HOME/.nvim directory
 | 
					  if exists('$XDG_DATA_HOME')
 | 
				
			||||||
    return $HOME . "/.nvim/spell"
 | 
					    return $XDG_DATA_HOME . "/nvim/site/spell"
 | 
				
			||||||
 | 
					  else
 | 
				
			||||||
 | 
					    return $HOME . "/.local/share/nvim/site/spell"
 | 
				
			||||||
  endif
 | 
					  endif
 | 
				
			||||||
  for dir in split(&rtp, ',')
 | 
					  for dir in split(&rtp, ',')
 | 
				
			||||||
    if filewritable(dir) == 2
 | 
					    if filewritable(dir) == 2
 | 
				
			||||||
 
 | 
				
			|||||||
		Reference in New Issue
	
	Block a user