Dotfiles/.config/nvim/lua/plugins/vim-fugitive.lua

10 lines
336 B
Lua
Raw Permalink Normal View History

2024-03-04 14:36:33 +00:00
return {
"tpope/vim-fugitive",
config = function()
vim.keymap.set('n', '<leader>gs', vim.cmd.Git);
vim.keymap.set('n', '<leader>ds', ':Gvdiffsplit!<CR>');
vim.keymap.set('n', '<leader>gl', ':diffget //2<CR>'); -- 'Get left' window
vim.keymap.set('n', '<leader>gr', ':diffget //3<CR>'); -- 'Get right' window
end
}