add lazygit integration
This commit is contained in:
parent
d1074eeca2
commit
df7988e8dd
@ -2,6 +2,9 @@ return {
|
|||||||
"sindrets/diffview.nvim",
|
"sindrets/diffview.nvim",
|
||||||
requires = 'nvim-lua/plenary.nvim',
|
requires = 'nvim-lua/plenary.nvim',
|
||||||
config = function()
|
config = function()
|
||||||
|
require("diffview").setup{
|
||||||
|
enhanced_diff_hl = true
|
||||||
|
}
|
||||||
require("legendary").command{
|
require("legendary").command{
|
||||||
":DiffviewOpen", description = "Open diff view"
|
":DiffviewOpen", description = "Open diff view"
|
||||||
}
|
}
|
||||||
|
@ -1,9 +0,0 @@
|
|||||||
return {
|
|
||||||
'tpope/vim-fugitive',
|
|
||||||
config = function ()
|
|
||||||
-- TODO: Add most commonly used fugitive bindings
|
|
||||||
require("legendary").keymaps{
|
|
||||||
{"<leader>gg", ":G<cr>", description = "Open fugitive", opts = {silent = true}}
|
|
||||||
}
|
|
||||||
end
|
|
||||||
}
|
|
26
lua/config/git-conflict.lua
Normal file
26
lua/config/git-conflict.lua
Normal file
@ -0,0 +1,26 @@
|
|||||||
|
return {
|
||||||
|
'akinsho/git-conflict.nvim',
|
||||||
|
tag = "*",
|
||||||
|
config = function()
|
||||||
|
require('git-conflict').setup{
|
||||||
|
default_mappings = false
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
|
require("legendary").keymaps{
|
||||||
|
{
|
||||||
|
itemgroup = "git-conflict",
|
||||||
|
description = "Git conflict",
|
||||||
|
icon = "",
|
||||||
|
keymaps = {
|
||||||
|
{ 'co', '<Plug>(git-conflict-ours)', description = "choose ours" },
|
||||||
|
{ 'ct', '<Plug>(git-conflict-theirs)', description = "choose theirs" },
|
||||||
|
{ 'cb', '<Plug>(git-conflict-both)', description = "choose both" },
|
||||||
|
{ 'c0', '<Plug>(git-conflict-none)', description = "choose none" },
|
||||||
|
{ ']x', '<Plug>(git-conflict-prev-conflict)', description = "move to previous conflict" },
|
||||||
|
{ '[x', '<Plug>(git-conflict-next-conflict)', description = "move to next conflict" },
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
end
|
||||||
|
}
|
8
lua/config/lazygit.lua
Normal file
8
lua/config/lazygit.lua
Normal file
@ -0,0 +1,8 @@
|
|||||||
|
return {
|
||||||
|
'kdheepak/lazygit.nvim',
|
||||||
|
config = function ()
|
||||||
|
require("legendary").keymaps{
|
||||||
|
{"<leader>gg", ":LazyGit<cr>", description = "Open lazygit", opts = {silent = true}}
|
||||||
|
}
|
||||||
|
end
|
||||||
|
}
|
@ -18,7 +18,7 @@ return function(use)
|
|||||||
use_config "lsputils"
|
use_config "lsputils"
|
||||||
use_config "luasnip"
|
use_config "luasnip"
|
||||||
use_config "trouble"
|
use_config "trouble"
|
||||||
use_config "fugitive"
|
use_config "lazygit"
|
||||||
use_config "gitsigns"
|
use_config "gitsigns"
|
||||||
use_config "nvim-tree"
|
use_config "nvim-tree"
|
||||||
use_config "autosource"
|
use_config "autosource"
|
||||||
@ -31,6 +31,7 @@ return function(use)
|
|||||||
use_config "treesitter"
|
use_config "treesitter"
|
||||||
use_config "ts-playground"
|
use_config "ts-playground"
|
||||||
use_config "diffview"
|
use_config "diffview"
|
||||||
|
use_config "git-conflict"
|
||||||
|
|
||||||
use {
|
use {
|
||||||
"nvim-telescope/telescope.nvim",
|
"nvim-telescope/telescope.nvim",
|
||||||
|
Loading…
Reference in New Issue
Block a user