nvim-config/after/plugin/neogit.lua
2023-02-05 19:08:26 -08:00

11 lines
281 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