Add fugitive, remove git bindings from telescope, add git bindings for git signs (line blame and line preview)
This commit is contained in:
parent
de34f66995
commit
a42c3175c2
2 changed files with 18 additions and 33 deletions
18
home/.config/nvim/lua/plugs/fugitive.lua
Normal file
18
home/.config/nvim/lua/plugs/fugitive.lua
Normal file
|
|
@ -0,0 +1,18 @@
|
|||
return {
|
||||
"tpope/vim-fugitive",
|
||||
config = function()
|
||||
require("utils").add_keymaps({
|
||||
n = {
|
||||
["<leader>gp"] = {
|
||||
cmd = ":Gitsigns preview_hunk_inline<CR>",
|
||||
},
|
||||
["<leader>gt"] = {
|
||||
cmd = ":Gitsigns toggle_current_line_blame<CR>",
|
||||
},
|
||||
["<leader>gb"] = {
|
||||
cmd = ":Git blame<CR>",
|
||||
}
|
||||
}
|
||||
})
|
||||
end
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue