From f81f699d925caf6629ba19b698450a62218c69e6 Mon Sep 17 00:00:00 2001 From: Micah Halter Date: Tue, 6 Feb 2024 06:02:04 -0500 Subject: [PATCH] fix(diffview-nvim): use diffview winbar and disable view activation --- lua/astrocommunity/git/diffview-nvim/init.lua | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/lua/astrocommunity/git/diffview-nvim/init.lua b/lua/astrocommunity/git/diffview-nvim/init.lua index 45a1f0375..4a93f33ef 100644 --- a/lua/astrocommunity/git/diffview-nvim/init.lua +++ b/lua/astrocommunity/git/diffview-nvim/init.lua @@ -3,6 +3,14 @@ return { "sindrets/diffview.nvim", event = "User AstroGitFile", cmd = { "DiffviewOpen" }, + opts = { + enhanced_diff_hl = true, + view = { + default = { winbar_info = true }, + file_history = { winbar_info = true }, + }, + hooks = { diff_buf_read = function(bufnr) vim.b[bufnr].view_activated = false end }, + }, }, { "NeogitOrg/neogit",