summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--.config/nvim/init.lua4
1 files changed, 4 insertions, 0 deletions
diff --git a/.config/nvim/init.lua b/.config/nvim/init.lua
index d2c45e5..1e7f0f3 100644
--- a/.config/nvim/init.lua
+++ b/.config/nvim/init.lua
@@ -50,6 +50,10 @@ function mk_scratch_buffer()
]]
end
+vim.keymap.set('x', '<leader>a', 'gg0oG$',
+ { desc = 'Select the [A]ll of the buffer' })
+vim.keymap.set('o', '<leader>a', ':normal! ggVG<CR>',
+ { desc = 'Text object of [A]ll of the buffer' })
vim.keymap.set('n', '<C-h>', '<C-w><C-h>',
{ desc = 'Move focus to the left window' })
vim.keymap.set('n', '<C-j>', '<C-w><C-j>',