diff --git a/.config/nvim/lua/core/keymap.lua b/.config/nvim/lua/core/keymap.lua index 92d8734..25228d8 100644 --- a/.config/nvim/lua/core/keymap.lua +++ b/.config/nvim/lua/core/keymap.lua @@ -216,3 +216,12 @@ keymap.set('n', 'cc', 'CccHighlighterToggle', opts('Toggle rend -- ──────────────────────────────────────────────────────( markdown )─ keymap.set('n', 'cr', 'MdEval', opts('Execute markdown codeblock')) + +-- spellcheck +keymap.set('n', 'S', function() + if vim.wo.spell then + vim.opt_local.spell = false + else + vim.opt_local.spell = true + end +end, opts('Toggle spell check'))