Skip to content

Commit

Permalink
improv(diffPopup): slightly better win_opts & virt_text
Browse files Browse the repository at this point in the history
  • Loading branch information
chrisgrieser committed Dec 28, 2023
1 parent a77ac31 commit 294bdc6
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions lua/tinygit/commands/pickaxe.lua
Original file line number Diff line number Diff line change
Expand Up @@ -144,8 +144,6 @@ local function showDiff(commitIdx, type)
style = "minimal",
zindex = 1, -- below nvim-notify floats
})
a.nvim_win_set_option(winnr, "list", false)
a.nvim_win_set_option(winnr, "signcolumn", "no")

-- Highlighting
-- INFO not using `diff` filetype, since that would remove filetype-specific highlighting
Expand Down Expand Up @@ -179,7 +177,7 @@ local function showDiff(commitIdx, type)
if type == "file" then infotext = infotext .. " n/N: next/prev occurrence" end
a.nvim_buf_set_extmark(bufnr, ns, 0, 0, {
virt_text = { { infotext, "DiagnosticVirtualTextInfo" } },
virt_text_pos = "overlay",
virt_text_win_col = 0,
})

-- keymaps: closing
Expand Down

0 comments on commit 294bdc6

Please sign in to comment.