summaryrefslogtreecommitdiffstats
path: root/plugin
diff options
context:
space:
mode:
authorThomas Vanbesien <tvanbesi@proton.me>2026-05-07 13:23:46 +0200
committerThomas Vanbesien <tvanbesi@proton.me>2026-05-07 13:23:46 +0200
commit263ff8e8ca1c82e59a63fac56b13b312271644bc (patch)
treed87a35ff001a20497ae5476cd63cba3d6f687a31 /plugin
parente4a5f174f9731c576b1232bebbe0e88d7579b4ee (diff)
downloadnvim-config-263ff8e8ca1c82e59a63fac56b13b312271644bc.tar.gz
nvim-config-263ff8e8ca1c82e59a63fac56b13b312271644bc.zip
fix(nvim): use `stdpath('config')` for spellfile paths
Diffstat (limited to 'plugin')
-rw-r--r--plugin/50-spell.lua4
1 files changed, 2 insertions, 2 deletions
diff --git a/plugin/50-spell.lua b/plugin/50-spell.lua
index 56d4c5f..59bcc92 100644
--- a/plugin/50-spell.lua
+++ b/plugin/50-spell.lua
@@ -20,8 +20,8 @@ end
vim.opt.spelllang = "en_us" -- Initial spell language
vim.opt.spellfile = { -- Spellfiles for zg, zw, z=, etc
- "/home/tvanbesi/.config/nvim/spell/en.utf-8.add",
- "/home/tvanbesi/.config/nvim/spell/fr.utf-8.add",
+ vim.fn.stdpath("config") .. "/spell/en.utf-8.add",
+ vim.fn.stdpath("config") .. "/spell/fr.utf-8.add",
}
vim.api.nvim_create_user_command("SpellToggle", toggle_spell, { desc = "Toggle spell checking" })