🐛 fix(nvim): use diffview winbar and disable view activation

This commit is contained in:
Sergio Laín 2024-02-10 01:36:37 +01:00
parent 03f2aa7dbd
commit cc52b91f5b
No known key found for this signature in database
GPG key ID: 14C9B8080681777B

View file

@ -8,6 +8,17 @@ return {
opts = function(_, opts) opts = function(_, opts)
local actions = require("diffview.actions") local actions = require("diffview.actions")
opts.enhanced_diff_hl = true
opts.view = {
default = { winbar_info = true },
file_history = { winbar_info = true },
}
opts.hooks = {
diff_buf_read = function(bufnr)
vim.b[bufnr].view_activated = false
end,
}
opts.keymaps = { opts.keymaps = {
--stylua: ignore --stylua: ignore
view = { view = {