Last command keymap

This commit is contained in:
Imbus 2024-08-25 01:40:24 +02:00
parent 69e92a1b95
commit 92d1767305

View file

@ -15,6 +15,7 @@ vim.keymap.set('n', '<leader>e', vim.diagnostic.open_float, { desc = 'Show diagn
vim.keymap.set('n', '<leader>q', vim.diagnostic.setloclist, { desc = 'Open diagnostic [Q]uickfix list' })
vim.keymap.set('n', '<leader>l', '<cmd>Lazy<CR>', { desc = 'Lazy plugin manager' })
vim.keymap.set('n', '<leader>1', '<cmd>!!<CR>', { desc = 'Run last command' })
-- Exit terminal mode in the builtin terminal with a shortcut that is a bit easier
-- for people to discover. Otherwise, you normally need to press <C-\><C-n>, which