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:
kalmenn 2024-02-25 18:31:59 +01:00
parent c93fd72d8e
commit 07ae650490
Signed by: kalmenn
GPG key ID: F500055C44BC3834

View file

@ -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