nvim-config/after/plugin/neogit.lua
Salar Rahmanian f1e4018776 lint
2023-02-09 21:22:26 -08:00

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