Dotfiles/.config/nvim/lua/plugins/git.lua
2024-05-13 20:43:31 +02:00

17 lines
480 B
Lua

return {
{
"tpope/vim-fugitive",
},
{
"lewis6991/gitsigns.nvim",
config = function()
-- Setup --
require("gitsigns").setup()
-- Keybinding --
vim.keymap.set("n", "<leader>gh", ":Gitsigns preview_hunk_inline<CR>", {})
vim.keymap.set("n", "<leader>gb", ":Gitsigns toggle_current_line_blame<CR>", {})
vim.keymap.set("n", "<leader>go", ":Git <CR>", {})
end,
},
}