Dotfiles/nvim/lua/plugins/git.lua
2024-02-24 20:53:17 +01:00

17 lines
396 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,
},
}