Neovim/lua/plugins/diffview.lua

30 lines
834 B
Lua

return {
{
"sindrets/diffview.nvim",
opts = {
keymaps = {
file_panel = {
{
"n", "cc",
"<Cmd>Git commit <bar> wincmd J<CR>",
{ desc = "Commit staged changes" },
},
{
"n", "ca",
"<Cmd>Git commit --amend <bar> wincmd J<CR>",
{ desc = "Amend the last commit" },
},
{
"n", "c<space>",
":Git commit ",
{ desc = "Populate command line with \":Git commit \"" },
},
},
}
}
},
{
"tpope/vim-fugitive"
}
}