fixed C-u and C-d behaviour

This commit is contained in:
voidarclabs
2025-11-03 14:15:49 +00:00
parent 2574ea9578
commit 36a5a0a2c7

View File

@@ -50,8 +50,8 @@ vim.keymap.set("n", "<up>", '<cmd>echo "Use k to move!!"<CR>')
vim.keymap.set("n", "<down>", '<cmd>echo "Use j to move!!"<CR>') vim.keymap.set("n", "<down>", '<cmd>echo "Use j to move!!"<CR>')
-- Center cursor after scrolling with Ctrl-d / Ctrl-u -- Center cursor after scrolling with Ctrl-d / Ctrl-u
vim.keymap.set("n", "<C-d>", "<C-d>zz", { noremap = true, silent = true }) vim.keymap.set("n", "<C-u>", "<C-u>zz", { desc = "Half page up" })
vim.keymap.set("n", "<C-u>", "<C-u>zz", { noremap = true, silent = true }) vim.keymap.set("n", "<C-d>", "<C-d>zz", { desc = "Half page down" })
-- C-BS for deleting whole word in insert mode -- C-BS for deleting whole word in insert mode
vim.keymap.set("i", "<C-BS>", "<C-W>", { noremap = true }) vim.keymap.set("i", "<C-BS>", "<C-W>", { noremap = true })