16 lines
308 B
Lua
16 lines
308 B
Lua
local installed, neogit = pcall(require, "neogit")
|
|
if installed then
|
|
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 }
|
|
)
|
|
end
|