mirror of
https://github.com/Baipyrus/nvim-config.git
synced 2024-12-26 05:11:45 +00:00
additional git keymaps
This commit is contained in:
parent
82c98b224a
commit
6e22ad5fc5
@ -1,5 +1,11 @@
|
||||
-- Switch in fugitive.vim status window with the current one
|
||||
vim.keymap.set('n', '<leader>gs', '<cmd>Gedit :<cr>', { desc = '[G]it [S]tatus' })
|
||||
-- Fetch all changes
|
||||
vim.keymap.set('n', '<leader>gF', '<cmd>Git fetch<cr>', { desc = '[G]it [F]etch' })
|
||||
-- Push changes
|
||||
vim.keymap.set('n', '<leader>gP', '<cmd>Git push<cr>', { desc = '[G]it [P]ush' })
|
||||
-- Pull changes
|
||||
vim.keymap.set('n', '<leader>gp', '<cmd>Git pull<cr>', { desc = '[G]it [P]ull' })
|
||||
|
||||
return {
|
||||
-- Git related plugins
|
||||
|
Loading…
Reference in New Issue
Block a user