diff --git a/lua/dot/keymaps.lua b/lua/dot/keymaps.lua index 4888916..db43f20 100644 --- a/lua/dot/keymaps.lua +++ b/lua/dot/keymaps.lua @@ -20,6 +20,13 @@ vim.keymap.set("n", "/", ":lua require('telescope.builtin').current_buffer_fuzzy desc = "Telescope: Find in current buffer", }) +-- Spelling + +vim.keymap.set("n", "s=", "z=", { desc = "Suggest spelling currection" }) +vim.keymap.set("n", "st", function() + vim.o.spell = not vim.o.spell +end, { desc = "Toggle spelling correction" }) + -- Language Server Protocol & Actions vim.keymap.set("n", "q", vim.diagnostic.setloclist, { desc = "Open diagnostic [Q]uickfix list" }) vim.keymap.set("n", "t", vim.diagnostic.open_float, { desc = "Open diagnostic" })