Remove lazygit and fugitive, add neogit
This commit is contained in:
parent
7a81af9ab4
commit
80f1f521cc
4 changed files with 20 additions and 54 deletions
|
|
@ -1,36 +0,0 @@
|
||||||
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>ga"] = {
|
|
||||||
cmd = ":Gwrite<CR>",
|
|
||||||
},
|
|
||||||
["<Leader>gr"] = {
|
|
||||||
cmd = ":Gread<CR>",
|
|
||||||
},
|
|
||||||
["<Leader>gs"] = {
|
|
||||||
cmd = ":G<CR>",
|
|
||||||
},
|
|
||||||
["<Leader>gd"] = {
|
|
||||||
cmd = ":Gdiffsplit<CR>",
|
|
||||||
},
|
|
||||||
["<Leader>gc"] = {
|
|
||||||
cmd = ":G commit<CR>",
|
|
||||||
},
|
|
||||||
["<Leader>gl"] = {
|
|
||||||
cmd = ":G log<CR>",
|
|
||||||
},
|
|
||||||
["<Leader>gb"] = {
|
|
||||||
cmd = ":G blame<CR>",
|
|
||||||
},
|
|
||||||
}
|
|
||||||
})
|
|
||||||
end
|
|
||||||
}
|
|
||||||
|
|
@ -76,6 +76,17 @@ return {
|
||||||
{ " " }
|
{ " " }
|
||||||
}
|
}
|
||||||
end,
|
end,
|
||||||
|
|
||||||
|
require("utils").add_keymaps({
|
||||||
|
n = {
|
||||||
|
["<leader>gp"] = {
|
||||||
|
cmd = ":Gitsigns preview_hunk_inline<CR>",
|
||||||
|
},
|
||||||
|
["<leader>gt"] = {
|
||||||
|
cmd = ":Gitsigns toggle_current_line_blame<CR>",
|
||||||
|
},
|
||||||
|
}
|
||||||
|
})
|
||||||
})
|
})
|
||||||
end,
|
end,
|
||||||
event = "VeryLazy",
|
event = "VeryLazy",
|
||||||
|
|
|
||||||
|
|
@ -1,18 +0,0 @@
|
||||||
return {
|
|
||||||
"kdheepak/lazygit.nvim",
|
|
||||||
cmd = {
|
|
||||||
"LazyGit",
|
|
||||||
"LazyGitConfig",
|
|
||||||
"LazyGitCurrentFile",
|
|
||||||
"LazyGitFilter",
|
|
||||||
"LazyGitFilterCurrentFile",
|
|
||||||
},
|
|
||||||
dependencies = {
|
|
||||||
"nvim-lua/plenary.nvim",
|
|
||||||
},
|
|
||||||
-- setting the keybinding for LazyGit with 'keys' is recommended in
|
|
||||||
-- order to load the plugin when the command is run for the first time
|
|
||||||
keys = {
|
|
||||||
{ "<leader>lg", "<cmd>LazyGit<cr>", desc = "LazyGit" }
|
|
||||||
}
|
|
||||||
}
|
|
||||||
9
home/.config/nvim/lua/plugs/neogit.lua
Normal file
9
home/.config/nvim/lua/plugs/neogit.lua
Normal file
|
|
@ -0,0 +1,9 @@
|
||||||
|
return {
|
||||||
|
"NeogitOrg/neogit",
|
||||||
|
dependencies = {
|
||||||
|
"nvim-lua/plenary.nvim",
|
||||||
|
"sindrets/diffview.nvim",
|
||||||
|
"nvim-telescope/telescope.nvim",
|
||||||
|
},
|
||||||
|
config = true
|
||||||
|
}
|
||||||
Loading…
Add table
Add a link
Reference in a new issue