Get the full file path to spell/add.utf-8.add
Adding a custom word to the dictionary was previously impossible because it could only find the add file if you opened neovim in the ~/.config/nvim folder itself
This commit is contained in:
		
							parent
							
								
									c93fd72d8e
								
							
						
					
					
						commit
						07ae650490
					
				
					 1 changed files with 1 additions and 1 deletions
				
			
		| 
						 | 
					@ -35,7 +35,7 @@ vim.opt.incsearch = true
 | 
				
			||||||
-- spellchecking
 | 
					-- spellchecking
 | 
				
			||||||
vim.opt.spelllang = { "en_us", "fr" }
 | 
					vim.opt.spelllang = { "en_us", "fr" }
 | 
				
			||||||
vim.opt.spell = true
 | 
					vim.opt.spell = true
 | 
				
			||||||
vim.opt.spellfile = "spell/add.utf-8.add"
 | 
					vim.opt.spellfile = vim.fn.stdpath("config") .. "/spell/add.utf-8.add"
 | 
				
			||||||
 | 
					
 | 
				
			||||||
-- exrc
 | 
					-- exrc
 | 
				
			||||||
vim.opt.exrc = true
 | 
					vim.opt.exrc = true
 | 
				
			||||||
| 
						 | 
					
 | 
				
			||||||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue