From 07ae6504902197098324bff297671f93b5f35efb Mon Sep 17 00:00:00 2001 From: kalmenn Date: Sun, 25 Feb 2024 18:31:59 +0100 Subject: [PATCH] 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 --- lua/sets.lua | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lua/sets.lua b/lua/sets.lua index c26703f..c57736c 100644 --- a/lua/sets.lua +++ b/lua/sets.lua @@ -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