more useful keybinds

This commit is contained in:
Sam 2024-10-13 10:09:42 +13:00
parent 30a23e475c
commit bd4c7174ee
1 changed files with 6 additions and 0 deletions

View File

@ -193,6 +193,12 @@ vim.keymap.set('n', '<C-k>', '<C-w><C-k>', { desc = 'Move focus to the upper win
-- Centre screen when scrolling with Ctrl-d and Ctrl-u -- Centre screen when scrolling with Ctrl-d and Ctrl-u
vim.keymap.set('n', '<C-d>', '<C-d>zz', { desc = 'Scroll [D]own one half screen' }) vim.keymap.set('n', '<C-d>', '<C-d>zz', { desc = 'Scroll [D]own one half screen' })
vim.keymap.set('n', '<C-u>', '<C-u>zz', { desc = 'Scroll [U]p one half screen' }) vim.keymap.set('n', '<C-u>', '<C-u>zz', { desc = 'Scroll [U]p one half screen' })
-- Paste without replacing the contents of the paste register
vim.keymap.set({ 'n', 'x' }, '<leader>p', '"_dP', { desc = '[P]aste without replacing the paste register' })
-- Remove s as a binding so I can see the tooltip
vim.keymap.set('n', 's', '<nop>')
-- [[ Basic Autocommands ]] -- [[ Basic Autocommands ]]
-- See `:help lua-guide-autocommands` -- See `:help lua-guide-autocommands`