local T = require('toolchain') local M = {} M.setup = function() T.add_highlighter_autoinstalls('gitcommit', 'gitignore', 'gitattributes', 'git_rebase', 'git_config') T.add_plugins( { 'tpope/vim-fugitive', }, { 'lewis6991/gitsigns.nvim', config = function() -- Setup -- require('gitsigns').setup() -- Keybinding -- vim.keymap.set( 'n', 'gh', ':Gitsigns preview_hunk_inline', { desc = 'Toggle Inline Git Diff' } ) vim.keymap.set( 'n', 'gb', ':Gitsigns toggle_current_line_blame', { desc = 'Toggle Inline Git Blame' } ) vim.keymap.set( 'n', 'go', ':Git ', { desc = 'Open Git' } ) end, }, { 'moyiz/git-dev.nvim', lazy = true, cmd = { 'GitDevOpen', 'GitDevCleanAll' }, opts = {}, } ) end return M