AutoYADM commit: 2024-12-27 01:15:02

This commit is contained in:
Daniel Fichtinger 2024-12-27 01:15:02 -05:00
parent ddc29f99a4
commit 2de69770a2
3 changed files with 13 additions and 3 deletions

View file

@ -25,11 +25,16 @@ map({ "n", "x" }, "\\", function()
LazyVim.format({ force = true })
end, { desc = "Format" })
map({ "n", "i" }, "<M-c>", function()
map({ "n" }, "<M-c>", function()
-- the `a` is necessary to return the cursor to the same
-- position it was before
vim.cmd("normal! zz")
end, { remap = false, noremap = true, desc = "Center Screen" })
map({ "i" }, "<M-c>", function()
-- the `a` is necessary to return the cursor to the same
-- position it was before
vim.api.nvim_input("<Esc>zza")
end, { remap = false, noremap = true, desc = "Center Screen" })
end, { remap = false, noremap = true, desc = "Center Screen (Insert mode)" })
map("n", "<C-z>", "<CMD>stop<CR>", { desc = "Suspend" })