add gitsigns mapping

This commit is contained in:
xfy
2024-12-18 08:57:54 +08:00
parent 7acb3d79a3
commit be8584c039
2 changed files with 2 additions and 0 deletions

View File

@ -38,6 +38,7 @@ map("n", "<leader>la", "<CMD>%bd|e#|bd#<CR>")
-- tabs
map("n", "<leader>tc", ":tabclose<CR>", { desc = "Close current tab" })
-- search
map("v", "<leader>ss", ":s/\\%V", { desc = "Search and replace in visual selection" })
-- copy

View File

@ -88,6 +88,7 @@ return {
-- Text object
map({ "o", "x" }, "ih", ":<C-U>Gitsigns select_hunk<CR>", "Gitsigns select hunk")
map("n", "<leader>gi", ":Gitsigns<CR>", "Gitsigns")
end,
preview_config = {
border = "solid",