tweaks
This commit is contained in:
parent
06070d2371
commit
08163e8d05
2 changed files with 10 additions and 7 deletions
|
@ -24,7 +24,7 @@ return {
|
||||||
require("trouble").setup()
|
require("trouble").setup()
|
||||||
end,
|
end,
|
||||||
},
|
},
|
||||||
"folke/which-key.nvim",
|
{ "folke/which-key.nvim", lazy = false },
|
||||||
{
|
{
|
||||||
"j-hui/fidget.nvim",
|
"j-hui/fidget.nvim",
|
||||||
config = function()
|
config = function()
|
||||||
|
|
|
@ -2,17 +2,20 @@ return {
|
||||||
"TimUntersberger/neogit",
|
"TimUntersberger/neogit",
|
||||||
cmd = "Neogit",
|
cmd = "Neogit",
|
||||||
dependencies = { "sindrets/diffview.nvim" },
|
dependencies = { "sindrets/diffview.nvim" },
|
||||||
|
keys = {
|
||||||
|
{ "<leader>ng", "<cmd>Neogit<cr>", desc = "Neogit" },
|
||||||
|
},
|
||||||
config = function()
|
config = function()
|
||||||
require("neogit").setup({
|
require("neogit").setup({
|
||||||
integrations = {
|
integrations = {
|
||||||
diffview = true,
|
diffview = true,
|
||||||
},
|
},
|
||||||
})
|
})
|
||||||
vim.api.nvim_set_keymap(
|
local group = vim.api.nvim_create_augroup("MyCustomNeogitEvents", { clear = true })
|
||||||
"n",
|
vim.api.nvim_create_autocmd("User", {
|
||||||
"<leader>ng",
|
pattern = "NeogitPushComplete",
|
||||||
[[<cmd>lua require('neogit').open({ kind = "split" })<cr>]],
|
group = group,
|
||||||
{ noremap = true, silent = true }
|
callback = require("neogit").close,
|
||||||
)
|
})
|
||||||
end,
|
end,
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue