Compare commits

..

No commits in common. "81e27ec01dde62e17a20d4cee838e7f5ee4dc228" and "c7f3f3bb17bf798b4b71cf544469f6064671ffbe" have entirely different histories.

2 changed files with 4 additions and 21 deletions

View File

@ -8,21 +8,6 @@ return {
delete = { text = "_" },
topdelete = { text = "" },
changedelete = { text = "~" },
untracked = { text = "|" },
},
signs_staged = {
add = { text = "+" },
change = { text = "~" },
delete = { text = "_" },
topdelete = { text = "" },
changedelete = { text = "~" },
untracked = { text = "|" },
},
attach_to_untracked = true,
current_line_blame_opts = {
virt_text_pos = "right_align",
delay = 200,
priority = 9999,
},
},
init = function()
@ -38,13 +23,11 @@ return {
{ desc = "[G]it undo [S]tage hunk" }
)
vim.keymap.set("n", "<leader>gd", require("gitsigns.actions").preview_hunk, { desc = "[G]it [D]iff hunk" })
vim.keymap.set(
"n",
"<leader>gb",
require("gitsigns.actions").toggle_current_line_blame,
{ desc = "[G]it [B]lame" }
"<leader>gd",
require("gitsigns.actions").preview_hunk_inline,
{ desc = "[G]it [D]iff hunk" }
)
vim.keymap.set("n", "<leader>gr", require("gitsigns.actions").reset_hunk, { desc = "[G]it [R]eset hunk" })

View File

@ -49,7 +49,7 @@ return {
for type, icon in pairs(signs) do
local hl_sign = "DiagnosticSign" .. type
local hl_text = "Diagnostic" .. type
vim.fn.sign_define(hl_sign, { text = icon, texthl = hl_sign })
vim.fn.sign_define(hl_sign, { text = icon, texthl = hl_sign, numhl = hl_text })
end
vim.api.nvim_create_autocmd("LspAttach", {