fix: add missing insert mode toggle for spell

This commit is contained in:
2024-12-02 13:18:27 -05:00
parent 27138db37b
commit e06507ba2d
+8 -1
View File
@@ -217,7 +217,7 @@ keymap.set('n', '<leader>cc', '<cmd>CccHighlighterToggle<CR>', opts('Toggle rend
-- ──────────────────────────────────────────────────────( markdown )─
keymap.set('n', '<leader>cr', '<cmd>MdEval<CR>', opts('Execute markdown codeblock'))
-- spellcheck
-- ────────────────────────────────────────────────────( spellcheck )─
keymap.set('n', '<leader>S', function()
if vim.wo.spell then
vim.opt_local.spell = false
@@ -225,3 +225,10 @@ keymap.set('n', '<leader>S', function()
vim.opt_local.spell = true
end
end, opts('Toggle spell check'))
keymap.set('i', '<C-s>', function()
if vim.wo.spell then
vim.opt_local.spell = false
else
vim.opt_local.spell = true
end
end, opts('Toggle spell check'))