Restore vim-fugitive, replace lazygit integration
This commit is contained in:
parent
da112b242e
commit
7ce0fc9438
|
@ -26,7 +26,7 @@ return {
|
|||
icon_hl = "@variable",
|
||||
desc = "Git",
|
||||
group = "Label",
|
||||
action = "LazyGit",
|
||||
action = "Git",
|
||||
key = "g",
|
||||
},
|
||||
{
|
||||
|
|
|
@ -21,8 +21,11 @@ vim.keymap.set("n", "<leader>fz", "<cmd>Telescope current_buffer_fuzzy_find<cr>"
|
|||
vim.keymap.set("n", "<leader>n", "<cmd>Neotree toggle<cr>")
|
||||
vim.keymap.set("n", "<leader>\\", "<cmd>Neotree reveal<cr>")
|
||||
|
||||
-- LazyGit
|
||||
vim.keymap.set("n", "<leader>gg", "<cmd>LazyGit<cr>")
|
||||
-- Git
|
||||
vim.keymap.set("n", "<leader>gg", "<cmd>Git<cr>")
|
||||
vim.keymap.set("n", "<leader>gc", "<cmd>Git commit<cr>")
|
||||
vim.keymap.set("n", "<leader>gl", "<cmd>Git pull<cr>")
|
||||
vim.keymap.set("n", "<leader>gp", "<cmd>Git push<cr>")
|
||||
|
||||
-- diffview
|
||||
vim.keymap.set("n", "<leader>do", "<cmd>DiffviewOpen<cr>")
|
||||
|
|
13
config/nvim/lua/plugins/fugitive.lua
Normal file
13
config/nvim/lua/plugins/fugitive.lua
Normal file
|
@ -0,0 +1,13 @@
|
|||
return {
|
||||
{
|
||||
"tpope/vim-fugitive",
|
||||
},
|
||||
{
|
||||
"tpope/vim-rhubarb",
|
||||
dependencies = "tpope/vim-fugitive",
|
||||
},
|
||||
{
|
||||
"shumphrey/fugitive-gitlab.vim",
|
||||
dependencies = "tpope/vim-fugitive",
|
||||
},
|
||||
}
|
|
@ -1,4 +0,0 @@
|
|||
return {
|
||||
"kdheepak/lazygit.nvim",
|
||||
cmd = { "LazyGit", "LazyGitConfig" },
|
||||
}
|
Loading…
Reference in a new issue