Add description to spellcheck bindings

This commit is contained in:
Fabrice Mouhartem 2023-12-25 15:43:06 +01:00
parent f6127cf54b
commit 4e160773c4

View File

@ -40,8 +40,8 @@ vim.api.nvim_create_autocmd({ "OptionSet" }, {
group = markdown,
callback = function()
if vim.o.spell == true then
vim.keymap.set("n", "<Leader>i", "mz[s1z=`z", { noremap = true, silent = true })
vim.keymap.set("n", "à", "]s", { noremap = true, silent = true })
vim.keymap.set("n", "<Leader>i", "mz[s1z=`z", { noremap = true, silent = true, desc = "f[I]x typo under cursor" })
vim.keymap.set("n", "à", "]s", { noremap = true, silent = true, desc = "Go to the next typo" })
else
keyunmap("n", "<Leader>i")
keyunmap("n", "à")