diff --git a/lua/custom/plugins/00-plugins.lua b/lua/custom/plugins/00-plugins.lua index bb46de24..fb21bdd2 100644 --- a/lua/custom/plugins/00-plugins.lua +++ b/lua/custom/plugins/00-plugins.lua @@ -13,6 +13,8 @@ vim.pack.add({ { src = 'https://github.com/kristijanhusak/vim-dadbod-ui' }, { src = 'https://github.com/kristijanhusak/vim-dadbod-completion' }, { src = 'https://github.com/thesimonho/kanagawa-paper.nvim' }, + { src = 'https://github.com/NeogitOrg/neogit' }, + { src = 'https://github.com/sindrets/diffview.nvim' }, }) -- ============================================================================= diff --git a/lua/custom/plugins/50-git.lua b/lua/custom/plugins/50-git.lua index ed8e71af..514ce14b 100644 --- a/lua/custom/plugins/50-git.lua +++ b/lua/custom/plugins/50-git.lua @@ -1,3 +1,16 @@ +-- NEOGIT +require('neogit').setup { + integrations = { + telescope = true, + diffview = true, + }, + sections = { + untracked = { folded = false }, + unstaged = { folded = false }, + staged = { folded = false }, + }, +} + -- "Git Mapping function GitPullAndNotify() vim.notify('Pull Processing...', vim.log.levels.INFO, { @@ -197,40 +210,4 @@ end, { silent = true, }) -return { - { - 'NeogitOrg/neogit', - dependencies = { - 'nvim-lua/plenary.nvim', -- required - 'sindrets/diffview.nvim', -- optional - for diff view - 'nvim-telescope/telescope.nvim', -- optional - for telescope integration - }, - config = function() - require('neogit').setup { - -- Neogit configuration - integrations = { - telescope = true, - diffview = true, - }, - sections = { - untracked = { - folded = false, - }, - unstaged = { - folded = false, - }, - staged = { - folded = false, - }, - }, - } - - -- Branch-specific keymaps - vim.keymap.set('n', 'gb', 'Neogit branch', { - desc = '[G]it [B]ranch menu', - noremap = true, - silent = true, - }) - end, - }, -} +return {}