Add neogit
This commit is contained in:
parent
d0245d52cf
commit
a199ca09f3
2 changed files with 48 additions and 2 deletions
|
|
@ -12,7 +12,7 @@ return {
|
|||
["n"] = { "nzzzv", desc = "Keep cursor centered while searching" },
|
||||
["N"] = { "Nzzzv", desc = "Keep cursor centered while searching" },
|
||||
|
||||
["q"] = "<nop>",
|
||||
["Q"] = "<nop>",
|
||||
|
||||
-- Buffers
|
||||
["H"] = {
|
||||
|
|
|
|||
46
config/astronvim/lua/user/plugins/neogit.lua
Normal file
46
config/astronvim/lua/user/plugins/neogit.lua
Normal file
|
|
@ -0,0 +1,46 @@
|
|||
return {
|
||||
"TimUntersberger/neogit",
|
||||
dependencies = { "nvim-lua/plenary.nvim" },
|
||||
opts = {
|
||||
-- Neogit refreshes its internal state after specific events, which can be expensive depending on the repository size.
|
||||
-- Disabling `auto_refresh` will make it so you have to manually refresh the status after you open it.
|
||||
auto_refresh = true,
|
||||
-- Change the default way of opening neogit
|
||||
kind = "floating",
|
||||
-- Change the default way of opening the commit popup
|
||||
commit_popup = {
|
||||
kind = "floating",
|
||||
},
|
||||
-- Change the default way of opening the preview buffer
|
||||
preview_buffer = {
|
||||
kind = "floating",
|
||||
},
|
||||
-- Change the default way of opening popups
|
||||
popup = {
|
||||
kind = "floating",
|
||||
},
|
||||
-- customize displayed signs
|
||||
signs = {
|
||||
-- { CLOSED, OPENED }
|
||||
section = { ">", "v" },
|
||||
item = { ">", "v" },
|
||||
hunk = { "", "" },
|
||||
},
|
||||
mappings = {
|
||||
-- modify status buffer mappings
|
||||
status = {
|
||||
["l"] = "Toggle",
|
||||
["h"] = "Close",
|
||||
},
|
||||
},
|
||||
},
|
||||
keys = {
|
||||
{
|
||||
"<leader>gn",
|
||||
function()
|
||||
require("neogit").open()
|
||||
end,
|
||||
desc = "Open neogit",
|
||||
},
|
||||
},
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue