diff options
| author | Thomas Vanbesien <tvanbesi@proton.me> | 2026-05-07 13:23:46 +0200 |
|---|---|---|
| committer | Thomas Vanbesien <tvanbesi@proton.me> | 2026-05-07 13:23:46 +0200 |
| commit | 263ff8e8ca1c82e59a63fac56b13b312271644bc (patch) | |
| tree | d87a35ff001a20497ae5476cd63cba3d6f687a31 /plugin | |
| parent | e4a5f174f9731c576b1232bebbe0e88d7579b4ee (diff) | |
| download | nvim-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.lua | 4 |
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" }) |
