From 294bdc65aa5353f724b550ee7a5fb9ab6362b117 Mon Sep 17 00:00:00 2001 From: Chris Grieser <73286100+chrisgrieser@users.noreply.github.com> Date: Thu, 28 Dec 2023 20:08:04 +0100 Subject: [PATCH] improv(diffPopup): slightly better win_opts & virt_text --- lua/tinygit/commands/pickaxe.lua | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/lua/tinygit/commands/pickaxe.lua b/lua/tinygit/commands/pickaxe.lua index 3a51abb..8d4e1f8 100644 --- a/lua/tinygit/commands/pickaxe.lua +++ b/lua/tinygit/commands/pickaxe.lua @@ -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 @@ -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