configs/neovim: add shortcut for neogit

This commit is contained in:
Aaron Bieber 2024-05-17 07:20:46 -06:00
parent 16b3b8916f
commit ca5cc692fb
No known key found for this signature in database

View File

@ -83,6 +83,7 @@ map('n', '<leader>g', ':GitGutterToggle<CR>', {noremap = true})
map('n', '<leader>2', ':set list!<CR>', {noremap = true}) map('n', '<leader>2', ':set list!<CR>', {noremap = true})
map('n', '<leader>3', ':set nu!<CR>', {noremap = true}) map('n', '<leader>3', ':set nu!<CR>', {noremap = true})
map('n', '<leader>4', ':set paste!<CR>', {noremap = true}) map('n', '<leader>4', ':set paste!<CR>', {noremap = true})
map('n', '<leader>m', ':Neogit<CR>', {noremap = true})
local builtin = require('telescope.builtin') local builtin = require('telescope.builtin')
vim.keymap.set('n', '<leader>ff', builtin.find_files, {}) vim.keymap.set('n', '<leader>ff', builtin.find_files, {})