|
|
@ -14,8 +14,9 @@ vim.keymap.set("n", "<leader>o", function() |
|
|
|
vim.cmd("setlocal spell! spelllang=en_au") |
|
|
|
end, { desc = "Toggle spell check" }) |
|
|
|
|
|
|
|
-- Map Q to nop |
|
|
|
vim.keymap.set("n", "Q", "<nop>", { desc = "Remap Q to <nop> because Q is the worst" }) |
|
|
|
-- Map Q to run q macro |
|
|
|
vim.keymap.set("n", "Q", "@q", { desc = "Remap Q to run @q macro" }) |
|
|
|
vim.keymap.set("x", "Q", ":norm @q<CR>", { desc = "Remap Q to run @q macro" }) |
|
|
|
|
|
|
|
-- Keep highlight when indenting |
|
|
|
vim.keymap.set("v", "<", "<gv", { desc = "Keep highlight when indenting" }) |
|
|
|