refactor(git): remove inline and side-window blame, keep popup + drill actions
This commit is contained in:
@@ -45,7 +45,6 @@ local DEFAULT_HIGHLIGHTS = {
|
||||
|
||||
GitBlameAuthor = "GitAuthor",
|
||||
GitBlameDate = "GitDate",
|
||||
GitBlameInline = "Comment",
|
||||
GitBlameSha = "GitSha",
|
||||
}
|
||||
local STAGED_HUNK_HL = {
|
||||
@@ -322,12 +321,6 @@ vim.api.nvim_create_user_command("GitDiffOverlay", function()
|
||||
require("git.hunks").toggle_overlay()
|
||||
end, { desc = "Toggle the git diff overlay in the current buffer" })
|
||||
|
||||
vim.keymap.set("n", "<Plug>(git-blame-view)", function()
|
||||
require("git.blame").toggle_view()
|
||||
end, { silent = true, desc = "Toggle the git blame side window" })
|
||||
vim.keymap.set("n", "<Plug>(git-blame-line)", function()
|
||||
require("git.blame").toggle_inline()
|
||||
end, { silent = true, desc = "Toggle inline git blame" })
|
||||
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" })
|
||||
@@ -344,9 +337,3 @@ end, {
|
||||
desc = "Open this file at the parent of the line's commit",
|
||||
})
|
||||
|
||||
vim.api.nvim_create_user_command("GitBlame", function()
|
||||
require("git.blame").toggle_view()
|
||||
end, { desc = "Toggle the git blame side window" })
|
||||
vim.api.nvim_create_user_command("GitBlameLine", function()
|
||||
require("git.blame").toggle_inline()
|
||||
end, { desc = "Toggle inline git blame in the current buffer" })
|
||||
|
||||
Reference in New Issue
Block a user