feat: moved gitgutter for git.nvim
parent
5733559ad2
commit
476aeacbe0
|
@ -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",
|
||||
}
|
||||
}
|
|
@ -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",
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue