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
|
@ -35,7 +35,7 @@ vim.opt.incsearch = true
|
|||
-- spellchecking
|
||||
vim.opt.spelllang = { "en_us", "fr" }
|
||||
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
|
||||
vim.opt.exrc = true
|
||||
|
|
Loading…
Reference in a new issue