Compare commits

...

2 Commits

Author SHA1 Message Date
Ryan
fd80eaf644
Delete obselete keymaps 2023-07-08 17:39:22 +08:00
Ryan
56409a7f8e Remove yadm support 2023-06-09 15:56:41 +08:00

View File

@ -1,23 +1,4 @@
require('gitsigns').setup { require('gitsigns').setup {
keymaps = {
-- Default keymap options
buffer = true,
noremap = true,
["n ]c"] = {
expr = true,
"&diff ? ']c' : '<cmd>lua require\"gitsigns\".next_hunk()<CR>'"
},
["n [c"] = {
expr = true,
"&diff ? '[c' : '<cmd>lua require\"gitsigns\".prev_hunk()<CR>'"
},
["n <leader>hs"] = '<cmd>lua require"gitsigns".stage_hunk()<CR>',
["n <leader>hu"] = '<cmd>lua require"gitsigns".undo_stage_hunk()<CR>',
["n <leader>hr"] = '<cmd>lua require"gitsigns".reset_hunk()<CR>',
["n <leader>hp"] = '<cmd>lua require"gitsigns".preview_hunk()<CR>',
["n <leader>hb"] = '<cmd>lua require"gitsigns".blame_line()<CR>'
},
-- signs -- signs
status_formatter = nil, -- Use default status_formatter = nil, -- Use default
numhl = false, numhl = false,
@ -38,7 +19,7 @@ require('gitsigns').setup {
numhl = "GitSignsDeleteNr" numhl = "GitSignsDeleteNr"
} }
}, },
yadm = {enable = true}, -- yadm = {enable = true},
-- Current line blame -- Current line blame
current_line_blame = true, -- Toggle with `:Gitsigns toggle_current_line_blame` current_line_blame = true, -- Toggle with `:Gitsigns toggle_current_line_blame`