From 4e160773c4851a43278703ede54df2dffa492511 Mon Sep 17 00:00:00 2001 From: Fabrice Mouhartem Date: Mon, 25 Dec 2023 15:43:06 +0100 Subject: [PATCH] Add description to spellcheck bindings --- lua/autocommands.lua | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/lua/autocommands.lua b/lua/autocommands.lua index 435cba8..1d24a55 100644 --- a/lua/autocommands.lua +++ b/lua/autocommands.lua @@ -40,8 +40,8 @@ vim.api.nvim_create_autocmd({ "OptionSet" }, { group = markdown, callback = function() if vim.o.spell == true then - vim.keymap.set("n", "i", "mz[s1z=`z", { noremap = true, silent = true }) - vim.keymap.set("n", "à", "]s", { noremap = true, silent = true }) + vim.keymap.set("n", "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", "i") keyunmap("n", "à")