fix(hunks): remove hunk overlay

This commit is contained in:
2026-05-29 15:06:17 +02:00
parent 351b5690c2
commit 73df30f1d0
4 changed files with 2 additions and 561 deletions
-11
View File
@@ -42,8 +42,6 @@ local DEFAULT_HIGHLIGHTS = {
GitHunkRemoved = "Removed",
GitHunkHeader = "Statement",
GitHunkAnnotation = "Title",
GitHunkAddLine = "DiffAdd",
GitHunkDeleteLine = "DiffDelete",
GitBlameAuthor = "GitAuthor",
GitBlameDate = "GitDate",
@@ -241,12 +239,6 @@ end, {
desc = "Open git status view",
})
vim.api.nvim_create_user_command("GitHunkOverlay", function()
require("git.hunks").toggle_overlay()
end, {
desc = "Toggle the git hunk overlay in the current buffer",
})
vim.keymap.set("n", "<Plug>(git-edit)", function()
local rev = vim.fn.input("Edit git object: ")
if rev == "" then
@@ -326,9 +318,6 @@ end, { silent = true, desc = "Preview hunk under cursor" })
vim.keymap.set("n", "<Plug>(git-hunk-select)", function()
require("git.hunks").select_hunk()
end, { silent = true, desc = "Select hunk under cursor" })
vim.keymap.set("n", "<Plug>(git-hunk-overlay)", function()
require("git.hunks").toggle_overlay()
end, { silent = true, desc = "Toggle the git hunk overlay" })
vim.keymap.set("n", "<Plug>(git-blame-popup)", function()
require("git.blame").line_popup()
end, { silent = true, desc = "Show git blame for the current line" })