diff --git a/.config/nvim/lua/core/keymap.lua b/.config/nvim/lua/core/keymap.lua index 25228d8..5abcaf0 100644 --- a/.config/nvim/lua/core/keymap.lua +++ b/.config/nvim/lua/core/keymap.lua @@ -217,7 +217,7 @@ keymap.set('n', 'cc', 'CccHighlighterToggle', opts('Toggle rend -- ──────────────────────────────────────────────────────( markdown )─ keymap.set('n', 'cr', 'MdEval', opts('Execute markdown codeblock')) --- spellcheck +-- ────────────────────────────────────────────────────( spellcheck )─ keymap.set('n', 'S', function() if vim.wo.spell then vim.opt_local.spell = false @@ -225,3 +225,10 @@ keymap.set('n', 'S', function() vim.opt_local.spell = true end end, opts('Toggle spell check')) +keymap.set('i', '', function() + if vim.wo.spell then + vim.opt_local.spell = false + else + vim.opt_local.spell = true + end +end, opts('Toggle spell check')) \ No newline at end of file