This commit is contained in:
Salar Rahmanian 2023-02-11 10:37:23 -08:00
parent 06070d2371
commit 08163e8d05
2 changed files with 10 additions and 7 deletions

View file

@ -24,7 +24,7 @@ return {
require("trouble").setup()
end,
},
"folke/which-key.nvim",
{ "folke/which-key.nvim", lazy = false },
{
"j-hui/fidget.nvim",
config = function()

View file

@ -2,17 +2,20 @@ return {
"TimUntersberger/neogit",
cmd = "Neogit",
dependencies = { "sindrets/diffview.nvim" },
keys = {
{ "<leader>ng", "<cmd>Neogit<cr>", desc = "Neogit" },
},
config = function()
require("neogit").setup({
integrations = {
diffview = true,
},
})
vim.api.nvim_set_keymap(
"n",
"<leader>ng",
[[<cmd>lua require('neogit').open({ kind = "split" })<cr>]],
{ noremap = true, silent = true }
)
local group = vim.api.nvim_create_augroup("MyCustomNeogitEvents", { clear = true })
vim.api.nvim_create_autocmd("User", {
pattern = "NeogitPushComplete",
group = group,
callback = require("neogit").close,
})
end,
}