AutoYADM commit: 2024-12-27 00:45:02
This commit is contained in:
parent
4b6434a3ed
commit
ddc29f99a4
1 changed files with 6 additions and 5 deletions
|
@ -21,18 +21,19 @@ vim.keymap.set({ "i", "n" }, "<C-t>", "<Nop>")
|
||||||
-- vim.notify("test")
|
-- vim.notify("test")
|
||||||
-- end)
|
-- end)
|
||||||
|
|
||||||
map({ "n", "v" }, "\\", function()
|
map({ "n", "x" }, "\\", function()
|
||||||
LazyVim.format({ force = true })
|
LazyVim.format({ force = true })
|
||||||
end, { desc = "Format" })
|
end, { desc = "Format" })
|
||||||
|
|
||||||
map({ "n", "i" }, "<M-z>", function()
|
map({ "n", "i" }, "<M-c>", function()
|
||||||
vim.cmd("normal! zz")
|
-- the `a` is necessary to return the cursor to the same
|
||||||
end, { remap = false, noremap = true, desc = "Center Screen (Insert Mode)" })
|
-- position it was before
|
||||||
|
vim.api.nvim_input("<Esc>zza")
|
||||||
|
end, { remap = false, noremap = true, desc = "Center Screen" })
|
||||||
|
|
||||||
map("n", "<C-z>", "<CMD>stop<CR>", { desc = "Suspend" })
|
map("n", "<C-z>", "<CMD>stop<CR>", { desc = "Suspend" })
|
||||||
|
|
||||||
map({ "n", "i", "x", "o" }, "<C-c>", "<Esc>", { noremap = true, desc = "Escape" })
|
map({ "n", "i", "x", "o" }, "<C-c>", "<Esc>", { noremap = true, desc = "Escape" })
|
||||||
map({ "n", "i", "x", "o" }, "<M-c>", "<Esc>", { noremap = true, desc = "Escape" })
|
|
||||||
|
|
||||||
-- Better Scroll
|
-- Better Scroll
|
||||||
|
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue