fix(hunks): remove hunk overlay
This commit is contained in:
@@ -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" })
|
||||
|
||||
Reference in New Issue
Block a user