This commit is contained in:
Baipyrus 2024-03-26 08:38:47 +01:00
commit a093b14686
3 changed files with 16 additions and 7 deletions

View File

@ -0,0 +1,16 @@
-- 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
'tpope/vim-fugitive',
dependencies = {
'tpope/vim-rhubarb',
},
}

View File

@ -40,9 +40,6 @@ vim.keymap.set('v', '<leader>pny', '"_dP', { desc = '[P]aste [N]o [Y]ank' })
-- Populate CMD to prepare for change directory -- Populate CMD to prepare for change directory
vim.keymap.set('n', '<leader>cd', ':cd ', { desc = 'Prepare CMD for [C]hange [D]irectory' }) vim.keymap.set('n', '<leader>cd', ':cd ', { desc = 'Prepare CMD for [C]hange [D]irectory' })
-- Switch in fugitive.vim status window with the current one
vim.keymap.set('n', '<leader>gs', '<cmd>Gedit :<cr>', { desc = '[G]it [S]tatus' })
-- Delete current buffer without closing window -- Delete current buffer without closing window
vim.keymap.set('n', '<leader>bd', '<cmd>bp<bar>sp<bar>bn<bar>bd<cr>', { desc = '[B]uffer [D]elete' }) vim.keymap.set('n', '<leader>bd', '<cmd>bp<bar>sp<bar>bn<bar>bd<cr>', { desc = '[B]uffer [D]elete' })
-- Switch to between buffers -- Switch to between buffers

View File

@ -19,10 +19,6 @@ require('lazy').setup({
-- Practice games -- Practice games
'ThePrimeagen/vim-be-good', 'ThePrimeagen/vim-be-good',
-- Git related plugins
'tpope/vim-fugitive',
'tpope/vim-rhubarb',
-- Processing-Java -- Processing-Java
'sophacles/vim-processing', 'sophacles/vim-processing',