add keybind for toggling spell [<leader>S]

This commit is contained in:
2024-12-02 13:07:39 -05:00
parent 75ed730fac
commit 6295a94c8d
+9
View File
@@ -216,3 +216,12 @@ 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
keymap.set('n', '<leader>S', function()
if vim.wo.spell then
vim.opt_local.spell = false
else
vim.opt_local.spell = true
end
end, opts('Toggle spell check'))