feat: moved gitgutter for git.nvim

main
Ricard Illa 2023-08-02 15:48:23 +02:00
parent 5733559ad2
commit 476aeacbe0
Signed by: rilla
GPG Key ID: 525307BD467E4205
2 changed files with 31 additions and 5 deletions

View File

@ -0,0 +1,31 @@
return {
'dinhhuy258/git.nvim',
config = {
default_mappings = true, -- NOTE: `quit_blame` and `blame_commit` are still merged to the keymaps even if `default_mappings = false`
keymaps = {
-- Open blame window
blame = "<Leader>gb",
-- Close blame window
quit_blame = "q",
-- Open blame commit
blame_commit = "<CR>",
-- Open file/folder in git repository
browse = "<Leader>go",
-- Open pull request of the current branch
open_pull_request = "<Leader>gp",
-- Create a pull request with the target branch is set in the `target_branch` option
create_pull_request = "<Leader>gn",
-- Opens a new diff that compares against the current index
diff = "<Leader>gd",
-- Close git diff
diff_close = "<Leader>gD",
-- Revert to the specific commit
revert = "<Leader>gr",
-- Revert the current file to the specific commit
revert_file = "<Leader>gR",
},
-- Default target branch when create a pull request
target_branch = "main",
}
}

View File

@ -1,12 +1,7 @@
return {
"psliwka/vim-smoothie",
-- navigation
"tpope/vim-unimpaired",
"tpope/vim-surround",
"tpope/vim-fugitive",
"airblade/vim-gitgutter",
"mzlogin/vim-markdown-toc",
}