Added lazy git

This commit is contained in:
Michael Housh
2023-09-29 23:49:56 -04:00
parent be0bb66e09
commit c930fb7e7a
8 changed files with 208 additions and 126 deletions

View File

@@ -1,38 +1,38 @@
return {
"TimUntersberger/neogit",
dependencies = {
"nvim-lua/plenary.nvim",
"nvim-telescope/telescope.nvim", -- optional
"sindrets/diffview.nvim", -- optional
},
opts = {
disable_signs = false,
disable_context_highlighting = false,
disable_commit_confirmation = true,
-- customize displayed signs
signs = {
-- { CLOSED, OPENED }
section = { ">", "v" },
item = { ">", "v" },
hunk = { "", "" },
},
integrations = {
diffview = true
},
-- override/add mappings
mappings = {
-- modify status buffer mappings
status = {
-- Adds a mapping with "B" as key that does the "BranchPopup" command
["B"] = "BranchPopup",
["C"] = "CommitPopup",
-- ["P"] = "PullPopup",
["S"] = "Stage",
-- ["D"] = "Discard",
-- Removes the default mapping of "s"
-- ["s"] = "",
}
}
},
cmd = "Neogit",
}
-- return {
-- "TimUntersberger/neogit",
-- dependencies = {
-- "nvim-lua/plenary.nvim",
-- "nvim-telescope/telescope.nvim", -- optional
-- "sindrets/diffview.nvim", -- optional
-- },
-- opts = {
-- disable_signs = false,
-- disable_context_highlighting = false,
-- disable_commit_confirmation = true,
-- -- customize displayed signs
-- signs = {
-- -- { CLOSED, OPENED }
-- section = { ">", "v" },
-- item = { ">", "v" },
-- hunk = { "", "" },
-- },
-- integrations = {
-- diffview = true
-- },
-- -- override/add mappings
-- mappings = {
-- -- modify status buffer mappings
-- status = {
-- -- Adds a mapping with "B" as key that does the "BranchPopup" command
-- ["B"] = "BranchPopup",
-- ["C"] = "CommitPopup",
-- -- ["P"] = "PullPopup",
-- ["S"] = "Stage",
-- -- ["D"] = "Discard",
-- -- Removes the default mapping of "s"
-- -- ["s"] = "",
-- }
-- }
-- },
-- cmd = "Neogit",
-- }