/ nvim / .config / nvim / lua / plugins / git.lua
git.lua
 1  return {
 2  	{
 3  		"NeogitOrg/neogit",
 4  		dependencies = {
 5  			"nvim-lua/plenary.nvim",
 6  			"sindrets/diffview.nvim",
 7  			"ibhagwan/fzf-lua",
 8  		},
 9  		config = function()
10  			local wk = require("which-key")
11  			require("neogit").setup({
12  
13  				commit_editor = {
14  					kind = "floating",
15  				},
16  				commit_select_view = {
17  					kind = "floating",
18  				},
19  
20  				preview_buffer = {
21  					kind = "floating",
22  				},
23  				popup = {
24  					kind = "floating",
25  				},
26  				merge_editor = {
27  					kind = "floating",
28  				},
29  				log_view = {
30  					kind = "floating",
31  				},
32  				description_editor = {
33  					kind = "floating",
34  				},
35  				rebase_editor = {
36  					kind = "floating",
37  				},
38  				reflog_view = {
39  					kind = "floating",
40  				},
41  				integrations = {
42  					fzf_lua = true,
43  				},
44  			})
45  			wk.add({
46  				"<leader>gg",
47  				"<cmd>Neogit<cr>",
48  				desc = "[g]it",
49  			})
50  		end,
51  	},
52  }