nvim-config/after/plugin/neogit.lua

16 lines
308 B
Lua
Raw Normal View History

2023-02-09 21:22:26 -08:00
local installed, neogit = pcall(require, "neogit")
if installed then
2023-02-09 21:22:26 -08:00
neogit.setup({
integrations = {
diffview = true,
},
})
2023-02-09 21:22:26 -08:00
vim.api.nvim_set_keymap(
"n",
"<leader>ng",
[[<cmd>lua require('neogit').open({ kind = "split" })<cr>]],
{ noremap = true, silent = true }
)
end