diff --git a/lua/mappings.lua b/lua/mappings.lua index ad2670c..c3db41b 100644 --- a/lua/mappings.lua +++ b/lua/mappings.lua @@ -40,8 +40,16 @@ keymap('t', '', '', { noremap = true, silent = true }) -- Markdown scratchpads require('which-key').add({ { "m", group = "[M]arkdown" }, - { "m_", hidden = "true" } + { "m_", hidden = "true" }, + { "sl", group = "[S]pell[Lang]" }, + { "sl_", hidden = true }, }) keymap('n', 'mn', ':e ~/tmp/scratch.md', { desc = '[M]arkdown [N]ew', noremap = true, silent = true }) keymap('n', 'me', ':e ~/tmp/scratch-fr.md', { desc = '[M]arkdown new Fr[e]nch', noremap = true, silent = true }) + +-- Spellchecking +keymap('n', 'st', ':set spell!', {desc = "Toggle [S]pellcheck", silent = true, noremap = true}) +keymap('n', 'sle', ':set spelllang=en', {desc = "Set [S]pell[L]ang to [E]nglish", silent = true, noremap = true}) +keymap('n', 'slf', ':set spelllang=fr', {desc = "Set [S]pell[L]ang to [F]rench", silent = true, noremap = true}) +